Part Number Hot Search : 
AS5245 RCUCTE 2SC2246 SS1101C SR530 AT88SC CH341DS MC101
Product Description
Full Text Search
 

To Download LPC2388FBD144 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  1. general description the lpc2388 microcontroller is based on a 16-bit/32-bit arm7tdmi-s cpu with real-time emulation that combines the microcontroller with 512 kb of embedded high-speed flash memory. a 128-bit wide memo ry interface and a unique accelerator architecture enable 32-bit code execution at the maximum clock rate. for critical performance in interrupt service routines and dsp algorithms, this increases performance up to 30 % over thumb mode. for critical code si ze applications, the alternative 16-bit thumb mode reduces code by more than 30 % with minimal performance penalty. the lpc2388 is ideal for multi-purpose serial communication applications. it incorporates a 10/100 ethernet media access controll er (mac), usb device/host/otg with 4 kb of endpoint ram, four uarts, two can channels , an spi interface, two synchronous serial ports (ssp), three i 2 c interfaces, an i 2 s interface, and an external memory controller (emc). this blend of serial communications interfaces combined with an on-chip 4 mhz internal oscillator, sram of 64 kb, 16 kb sram for ethernet, 16 kb sram for usb and general purpose use, together with 2 kb battery powered sram make this device very well suited for communication gateways and prot ocol converters. various 32-bit timers, an improved 10-bit adc, 10-bit dac, pwm unit, a can control unit, and up to 104 fast gpio lines with up to 50 edge and up to four level sensitive external interrupt pins make these microcontrollers particularly suitable fo r industrial control and medical systems. 2. features ? arm7tdmi-s processor, running at up to 72 mhz. ? up to 512 kb on-chip flash program memory with in-system programming (isp) and in-application programming (i ap) capabilities. flash program memory is on the arm local bus for high performance cpu access. ? 64 kb of sram on the arm local bus for high performance cpu access. ? 16 kb sram for ethernet interface. can also be used as general purpose sram. ? 16 kb sram for general purpose dma use also accessible by the usb. ? dual advanced high-performance bus (ahb) system that provides for simultaneous ethernet dma, usb dma, and program ex ecution from on-chip flash with no contention between those functions. a bus bridge allows the ethernet dma to access the other ahb subsystem. ? emc provides support for stat ic devices such as flash and sram as well as off-chip memory mapped peripherals. ? advanced vectored interrupt controller (vic), supporting up to 32 vectored interrupts. lpc2388 single-chip 16-bit/32-bit microc ontroller; 512 kb flash with isp/iap, ethernet, usb 2.0 de vice/host/otg, can, and 10-bit adc/dac rev. 00.02 ? 28 january 2008 preliminary data sheet
lpc2388_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.02 ? 28 january 2008 2 of 57 nxp semiconductors lpc2388 fast communication chip ? general purpose dma contro ller (gpdma) on ahb that can be used with the ssp serial interfaces, the i 2 s port, and the secure digital/multimediacard (sd/mmc) card port, as well as for memory-to-memory transfers. ? serial interfaces: ? ethernet mac with associated dma controller. these functions reside on an independent ahb. ? usb 2.0 device/host/otg with on-chip phy and associated dma controller. ? four uarts with fractional baud rate generation, one with modem control i/o, one with irda support, all with fifo. ? can controller with two channels. ? spi controller. ? two ssp controllers, with fifo and multi-pr otocol capabilities. one is an alternate for the spi port, sharing its interrupt and pins. these can be used with the gpdma controller. ? three i 2 c-bus interfaces (one with open-drai n and two with standard port pins). ? i 2 s (inter-ic sound) interface for digital audio input or output. it can be used with the gpdma. ? other peripherals: ? sd/mmc memory card interface. ? 104 general purpose i/o pins with configurable pull-up/down resistors. ? 10-bit adc with input multiplexing among 8 pins. ? 10-bit dac. ? four general purpose timers/counters with 8 capture inputs and 10 compare outputs. each timer block has an external count input. ? one pwm/timer block with support for th ree-phase motor control. the pwm has two external count inputs. ? real-time clock (rtc) with separate power pin, clo ck source can be the rtc oscillator or the apb clock. ? 2 kb sram powered from the rtc power pin, allowing data to be stored when the rest of the chip is powered off. ? watchdog timer (wdt). the wdt can be cl ocked from the internal rc oscillator, the rtc oscillator, or the apb clock. ? standard arm test/debug interface for compatibility with existing tools. ? emulation trace module supports real-time trace. ? single 3.3 v power supply (3.0 v to 3.6 v). ? three reduced power modes: idle, sleep, and power-down. ? four external interrupt inputs configurable as edge/level sensitive. all pins on port0 and port2 can be used as edge sensitive interrupt sources. ? processor wake-up from power-down mode via any interrupt able to operate during power-down mode (includes external interrupts, rtc interrupt, usb activity, ethernet wake-up interrupt). ? two independent power domains allow fine tuning of power consumption based on needed features. ? each peripheral has it s own clock divider for further power saving. ? brownout detect with separate thresholds for interrupt and forced reset. ? on-chip power-on reset. ? on-chip crystal oscillator wit h an operating range of 1 mhz to 24 mhz.
lpc2388_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.02 ? 28 january 2008 3 of 57 nxp semiconductors lpc2388 fast communication chip ? 4 mhz internal rc oscillator trimmed to 1 % accuracy that can optionally be used as the system clock. when used as the cpu clock, does not allow can and usb to run. ? on-chip pll allows cpu operation up to the maximum cpu rate without the need for a high frequency crystal. may be run from the main oscillator, the internal rc oscillator, or the rtc oscillator. ? boundary scan for simplified board testing. ? versatile pin function selections allow mo re possibilities for us ing on-chip peripheral functions. 3. applications ? industrial control ? medical systems ? protocol converter ? communications 4. ordering information 4.1 ordering options table 1. ordering information type number package name description version LPC2388FBD144 lqfp144 plastic low profile quad flat package; 144 leads; body 20 20 1.4 mm sot486-1 table 2. ordering options type number flash (kb) sram (kb) external bus ether net usb device host otg+ 4 kb fifo can channels sd/ mmc gp dma adc channels dac channels temp range local bus ethernet buffer gp/usb rtc total LPC2388FBD144 512 64 16 16 2 98 minibus: 8 data, 16 address, and 2 chip select lines rmii yes 2 yes yes 8 1 ? 40 c to +85 c
lpc2388_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.02 ? 28 january 2008 4 of 57 nxp semiconductors lpc2388 fast communication chip 5. block diagram fig 1. lpc2388 block diagram pwm1 arm7tdmi-s pll eint3 to eint0 flash p3, p4 p0, p1, p2, legacy gpi/o 56 pins total p0, p1 sck, sck0 mosi, mosi0 ssel, ssel0 sck1 mosi1 miso1 ssel1 scl0, scl1, scl2 i2srx_clk i2stx_clk i2srx_ws i2stx_ws 8 ad0 rtcx1 rtcx2 mciclk, mcipwr rxd0, rxd2, rxd3 txd1 rxd1 rd1, rd2 td1, td2 can1, can2 usb port 1 xtal1 tck tdo extin0 xtal2 reset trst tdi tms high-speed gpi/o 104 pins total lpc2388 usb port 2 64 kb sram 512 kb flash internal controllers test/debug interface emulation trace module trace signals ahb bridge ahb bridge ethernet mac with dma 16 kb sram master port ahb to ahb bridge slave port system clock system functions internal rc oscillator v dda v dd(3v3) vref v ssa , v ss vectored interrupt controller 16 kb sram usb with 4 kb ram and dma gp dma controller i 2 s interface spi, ssp0 interface i2srx_sda i2stx_sda miso, miso0 ssp1 interface sd/mmc card interface mcicmd, mcidat[3:0] txd0, txd2, txd3 uart0, uart2, uart3 uart1 dtr1, rts1 dsr1, cts1, dcd1, ri1 i 2 c0, i 2 c1, i 2 c2 sda0, sda1, sda2 external interrupts capture/compare timer0/timer1/ timer2/timer3 a/d converter d/a converter 2 kb battery ram rtc oscillator real- time clock watchdog timer system control 2 cap0/cap1/ cap2/cap3 4 mat2, 2 mat0/mat1/ mat3 6 pwm1 2 pcap1 aout vbat ahb to apb bridge sram rmii(8) v bus 002aad332 p0, p2 power domain 2 ahb2 ahb1 power domain 2 v dd(dcdc)(3v3) a[15:0] d[7:0] external memory controller oe, cs0, cs1, bls0
lpc2388_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.02 ? 28 january 2008 5 of 57 nxp semiconductors lpc2388 fast communication chip 6. pinning information 6.1 pinning 6.2 pin description fig 2. lpc2388 pinning LPC2388FBD144 108 37 72 144 109 73 1 36 002aad333 table 3. pin description symbol pin type description p0[0] to p0[31] i/o port 0: port 0 is a 32-bit i/o port with individu al direction controls for each bit. the operation of port 0 pins depends upon the pin function selected via the pin connect block. p0[0]/rd1/txd/ sda1 66 [1] i/o p0[0] ? general purpose digital input/output pin. i rd1 ? can1 receiver input. o txd3 ? transmitter output for uart3. i/o sda1 ? i 2 c1 data input/output (this is not an open-drain pin). p0[1]/td1/rxd3/ scl1 67 [1] i/o p0[1] ? general purpose digital input/output pin. o td1 ? can1 transmitter output. i rxd3 ? receiver input for uart3. i/o scl1 ? i 2 c1 clock input/output (this is not an open-drain pin). p0[2]/txd0 141 [1] i/o p0[2] ? general purpose digital input/output pin. o txd0 ? transmitter output for uart0. p0[3]/rxd0 142 [1] i/o p0[3] ? general purpose digital input/output pin. i rxd0 ? receiver input for uart0. p0[4]/ i2srx_clk/ rd2/cap2[0] 116 [1] i/o p0[4] ? general purpose digital input/output pin. i/o i2srx_clk ? receive clock. it is driven by th e master and received by the slave. corresponds to the signal sck in the i 2 s-bus specification . i rd2 ? can2 receiver input. i cap2[0] ? capture input for timer 2, channel 0.
lpc2388_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.02 ? 28 january 2008 6 of 57 nxp semiconductors lpc2388 fast communication chip p0[5]/ i2srx_ws/ td2/cap2[1] 115 [1] i/o p0[5] ? general purpose digital input/output pin. i/o i2srx_ws ? receive word select. it is driven by the master and received by the slave. corresponds to the signal ws in the i 2 s-bus specification . o td2 ? can2 transmitter output. i cap2[1] ? capture input for timer 2, channel 1. p0[6]/ i2srx_sda/ ssel1/mat2[0] 113 [1] i/o p0[6] ? general purpose digital input/output pin. i/o i2srx_sda ? receive data. it is driven by the transmitter and read by the receiver. corresponds to the signal sd in the i 2 s-bus specification . i/o ssel1 ? slave select for ssp1. o mat2[0] ? match output for timer 2, channel 0. p0[7]/ i2stx_clk/ sck1/mat2[1] 112 [1] i/o p0[7] ? general purpose digital input/output pin. i/o i2stx_clk ? transmit clock. it is driven by the master and received by the slave. corresponds to the signal sck in the i 2 s-bus specification . i/o sck1 ? serial clock for ssp1. o mat2[1] ? match output for timer 2, channel 1. p0[8]/ i2stx_ws/ miso1/mat2[2] 111 [1] i/o p0[8] ? general purpose digital input/output pin. i/o i2stx_ws ? transmit word select. it is driven by the master and received by the slave. corresponds to the signal ws in the i 2 s-bus specification . i/o miso1 ? master in slave out for ssp1. o mat2[2] ? match output for timer 2, channel 2. p0[9]/ i2stx_sda/ mosi1/mat2[3] 109 [1] i/o p0[9] ? general purpose digital input/output pin. i/o i2stx_sda ? transmit data. it is driven by the transmitter and read by the receiver. corresponds to the signal sd in the i 2 s-bus specification . i/o mosi1 ? master out slave in for ssp1. o mat2[3] ? match output for timer 2, channel 3. p0[10]/txd2/ sda2/mat3 [0] 69 [1] i/o p0[10] ? general purpose digital input/output pin. o txd2 ? transmitter output for uart2. i/o sda2 ? i 2 c2 data input/output (this is not an open-drain pin). o mat3[0] ? match output for timer 3, channel 0. p0[11]/rxd2/ scl2/mat3[1] 70 [1] i/o p0[11] ? general purpose digital input/output pin. i rxd2 ? receiver input for uart2. i/o scl2 ? i 2 c2 clock input/output (this is not an open-drain pin). o mat3[1] ? match output for timer 3, channel 1. p0[12]/miso1/ ad0[6] 29 [2] i/o p0[12] ? general purpose digital input/output pin. i/o miso1 ? master in slave out for ssp1. i ad0[6] ? a/d converter 0, input 6. p0[13]/ usb_up_led2/ mosi1/ad0[7] 32 [2] i/o p0[13] ? general purpose digital input/output pin. o usb_up_led2 ? usb port 2 good link led indicator. it is low when device is configured (non-control endpoints enabl ed). it is high when the device is not configured or during global suspend. i/o mosi1 ? master out slave in for ssp1. i ad0[7] ? a/d converter 0, input 7. table 3. pin description ?continued symbol pin type description
lpc2388_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.02 ? 28 january 2008 7 of 57 nxp semiconductors lpc2388 fast communication chip p0[14]/ usb_hsten2 / usb_connect2/ ssel1 48 [1] i/o p0[14] ? general purpose digital input/output pin. o usb_hsten2 ? host enabled status for usb port 2. o usb_connect2 ? softconnect control for usb port 2. signal used to switch an external 1.5 k resistor under software control. used with the softconnect usb feature. i/o ssel1 ? slave select for ssp1. p0[15]/txd1/ sck0/sck 89 [1] i/o p0[15] ? general purpose digital input/output pin. o txd1 ? transmitter output for uart1. i/o sck0 ? serial clock for ssp0. i/o sck ? serial clock for spi. p0[16]/rxd1/ ssel0/ssel 90 [1] i/o p0 [16] ? general purpose digital input/output pin. i rxd1 ? receiver input for uart1. i/o ssel0 ? slave select for ssp0. i/o ssel ? slave select for spi. p0[17]/cts1/ miso0/miso 87 [1] i/o p0[17] ? general purpose digital input/output pin. i cts1 ? clear to send input for uart1. i/o miso0 ? master in slave out for ssp0. i/o miso ? master in slave out for spi. p0[18]/dcd1/ mosi0/mosi 86 [1] i/o p0[18] ? general purpose digital input/output pin. i dcd1 ? data carrier detect input for uart1. i/o mosi0 ? master out slave in for ssp0. i/o mosi ? master out slave in for spi. p0[19]/dsr1/ mciclk/sda1 85 [1] i/o p0[19] ? general purpose digital input/output pin. i dsr1 ? data set ready input for uart1. o mciclk ? clock output line for sd/mmc interface. i/o sda1 ? i 2 c1 data input/output (this is not an open-drain pin). p0[20]/dtr1/ mcicmd/scl1 83 [1] i/o p0[20] ? general purpose digital input/output pin. o dtr1 ? data terminal ready output for uart1. i mcicmd ? command line for sd/mmc interface. i/o scl1 ? i 2 c1 clock input/output (this is not an open-drain pin). p0[21]/ri1/ mcipwr/rd1 82 [1] i/o p0[21] ? general purpose digital input/output pin. i ri1 ? ring indicator input for uart1. o mcipwr ? power supply enable for external sd/mmc power supply. i rd1 ? can1 receiver input. p0[22]/rts1/ mcidat0/td1 80 [1] i/o p0[22] ? general purpose digital input/output pin. o rts1 ? request to send output for uart1. o mcidat0 ? data line for sd/mmc interface. o td1 ? can1 transmitter output. table 3. pin description ?continued symbol pin type description
lpc2388_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.02 ? 28 january 2008 8 of 57 nxp semiconductors lpc2388 fast communication chip p0[23]/ad0[0]/ i2srx_clk/ cap3[0] 13 [2] i/o p0[23] ? general purpose digital input/output pin. i ad0[0] ? a/d converter 0, input 0. i/o i2srx_clk ? receive clock. it is driven by th e master and received by the slave. corresponds to the signal sck in the i 2 s-bus specification . i cap3[0] ? capture input for timer 3, channel 0. p0[24]/ad0[1]/ i2srx_ws/ cap3[1] 11 [3] i/o p0[24] ? general purpose digital input/output pin. i ad0[1] ? a/d converter 0, input 1. i/o i2srx_ws ? receive word select. it is driven by the master and received by the slave. corresponds to the signal ws in the i 2 s-bus specification . i cap3[1] ? capture input for timer 3, channel 1. p0[25]/ad0[2]/ i2srx_sda/ txd3 10 [2] i/o p0[25] ? general purpose digital input/output pin. i ad0[2] ? a/d converter 0, input 2. i/o i2srx_sda ? receive data. it is driven by the transmitter and read by the receiver. corresponds to the signal sd in the i 2 s-bus specification . o txd3 ? transmitter output for uart3. p0[26]/ad0[3]/ aout/rxd3 8 [2] i/o p0[26] ? general purpose digital input/output pin. i ad0[3] ? ]a/d converter 0, input 3. o aout ? d/a converter output. i rxd3 ? receiver input for uart3. p0[27]/sda0 35 [4] i/o p0[27] ? general purpose digital input/output pin. i/o sda0 ? i 2 c0 data input/output. open-drain output (for i 2 c-bus compliance). p0[28]/scl0 34 [4] i/o p0[28] ? general purpose digital input/output pin. i/o scl0 ? i 2 c0 clock input/output. op en-drain output (for i 2 c-bus compliance). p0[29]/usb_d+1 42 [5] i/o p0[29] ? general purpose digital input/output pin. i/o usb_d+1 ? usb port 1 bidirectional d+ line. p0[30]/usb_d ? 1 43 [5] i/o p0[30] ? general purpose digital input/output pin. i/o usb_d ? 1 ? usb port 1 bidirectional d ? line. p0[31]/usb_d+2 36 [5] i/o p0[31] ? general purpose digital input/output pin. i/o usb_d+2 ? usb port 2 bidirectional d+ line. p1[0] to p1[31] i/o port 1: port 1 is a 32-bit i/o port with individu al direction controls for each bit. the operation of port 1 pins depends upon the pin function selected via the pin connect block. pins 2, 3, 5, 6, 7, 11, 12, and 13 of this port are not available. p1[0]/ enet_txd0 136 [1] i/o p1[0] ? general purpose digital input/output pin. o enet_txd0 ? ethernet transmit data 0. p1[1]/ enet_txd1 135 [1] i/o p1[1] ? general purpose digital input/output pin. o enet_txd1 ? ethernet transmit data 1. p1[4]/ enet_tx_en 133 [1] i/o p1[4] ? general purpose digital input/output pin. o enet_tx_en ? ethernet transmit data enable. p1[8]/ enet_crs 132 [1] i/o p1[8] ? general purpose digital input/output pin. i enet_crs ? ethernet carrier sense. p1[9]/ enet_rxd0 131 [1] i/o p1[9] ? general purpose digital input/output pin. i enet_rxd0 ? ethernet receive data. table 3. pin description ?continued symbol pin type description
lpc2388_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.02 ? 28 january 2008 9 of 57 nxp semiconductors lpc2388 fast communication chip p1[10]/ enet_rxd1 129 [1] i/o p1[10] ? general purpose digital input/output pin. i enet_rxd1 ? ethernet receive data. p1[14]/ enet_rx_er 128 [1] i/o p1[14] ? general purpose digital input/output pin. i enet_rx_er ? ethernet receive error. p1[15]/ enet_ref_clk 126 [1] i/o p1[15] ? general purpose digital input/output pin. i enet_ref_clk/enet_rx_clk ? ethernet receiver clock. p1[16]/ enet_mdc 125 [1] i/o p1[16] ? general purpose digital input/output pin. o enet_mdc ? ethernet miim clock. p1[17]/ enet_mdio 123 [1] i/o p1[17] ? general purpose digital input/output pin. i/o enet_mdio ? ethernet mi data input and output. p1[18]/ usb_up_led1/ pwm1[1]/ cap1[0] 46 [1] i/o p1[18] ? general purpose digital input/output pin. o usb_up_led1 ? usb port 1 good link led indicator. it is low when device is configured (non-control endpoints enabl ed). it is high when the device is not configured or during global suspend. o pwm1[1] ? pulse width modulator 1, channel 1 output. i cap1[0] ? capture input for timer 1, channel 0. p1[19]/ usb_tx_e1 / usb_ppwr1 / cap1[1] 47 [1] i/o p1[19] ? general purpose digital input/output pin. o usb_tx_e 1 ? transmit enable signal for usb port 1 (otg transceiver). o usb_ppwr 1 ? port power enable signal for usb port 1. i cap1[1] ? capture input for timer 1, channel 1. p1[20]/ usb_tx_dp1/ pwm1[2]/sck0 49 [1] i/o p1[20] ? general purpose digital input/output pin. o usb_tx_dp1 ? d+ transmit data for usb port 1 (otg transceiver). o pwm1[2] ? pulse width modulator 1, channel 2 output. i/o sck0 ? serial clock for ssp0. p1[21]/ usb_tx_dm1/ pwm1[3]/ssel0 50 [1] i/o p1[21] ? general purpose digital input/output pin. o usb_tx_dm1 ? d ? transmit data for usb port 1 (otg transceiver). o pwm1[3] ? pulse width modulator 1, channel 3 output. i/o ssel0 ? slave select for ssp0. p1[22]/ usb_rcv1/ usb_pwrd1/ mat1[0] 51 [1] i/o p1[22] ? general purpose digital input/output pin. i usb_rcv1 ? differential receive data for usb port 1 (otg transceiver). i usb_pwrd1 ? power status for usb port 1 (host power switch). o mat1[0] ? match output for timer 1, channel 0. p1[23]/ usb_rx_dp1/ pwm1[4]/miso0 53 [1] i/o p1[23] ? general purpose digital input/output pin. i usb_rx_dp1 ? d+ receive data for usb port 1 (otg transceiver). o pwm1[4] ? pulse width modulator 1, channel 4 output. i/o miso0 ? master in slave out for ssp0. p1[24]/ usb_rx_dm1/ pwm1[5]/mosi0 54 [1] i/o p1[24] ? general purpose digital input/output pin. i usb_rx_dm1 ? d ? receive data for usb port 1 (otg transceiver). o pwm1[5] ? pulse width modulator 1, channel 5 output. i/o mosi0 ? master out slave in for ssp0. table 3. pin description ?continued symbol pin type description
lpc2388_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.02 ? 28 january 2008 10 of 57 nxp semiconductors lpc2388 fast communication chip p1[25]/ usb_ls1 / usb_hsten1 / mat1[1] 56 [1] i/o p1[25] ? general purpose digital input/output pin. o usb_ls 1 ? low-speed status for usb port 1 (otg transceiver). o usb_hsten 1 ? host enabled status for usb port 1. o mat1[1] ? match output for timer 1, channel 1. p1[26]/ usb_sspnd1 / pwm1[6]/ cap0[0] 57 [1] i/o p1[26] ? general purpose digital input/output pin. o usb_sspnd 1 ? usb port 1 bus suspend status (otg transceiver). o pwm1[6] ? pulse width modulator 1, channel 6 output. i cap0[0] ? capture input for timer 0, channel 0. p1[27]/ usb_int 1 / usb_ovrcr 1 / cap0[1] 61 [1] i/o p1[27] ? general purpose digital input/output pin. i usb_int 1 ? usb port 1 otg transceiver interrupt (otg transceiver). i usb_ovrcr 1 ? usb port 1 over-current status. i cap0[1] ? capture input for timer 0, channel 1. p1[28]/ usb_scl1/ pcap1[0]/ mat0[0] 63 [1] i/o p1[28] ? general purpose digital input/output pin. i/o usb_scl1 ? usb port 1 i 2 c-bus serial clock (otg transceiver). i pcap1[0] ? capture input for pwm1, channel 0. o mat0[0] ? match output for timer 0, channel 0. p1[29]/ usb_sda1/ pcap1[1]/ mat0[1] 64 [1] i/o p1[29] ? general purpose digital input/output pin. i/o usb_sda1 ? usb port 1 i 2 c-bus serial data (otg transceiver). i pcap1[1] ? capture input for pwm1, channel 1. o mat0[1] ? match output for timer 0, channel 0. p1[30]/ usb_pwrd2/ v bus /ad0[4] 30 [2] i/o p1[30] ? general purpose digital input/output pin. i usb_pwrd2 ? power status for usb port 2. i v bus ? monitors the presence of usb bus power. note: this signal must be hi gh for usb reset to occur. i ad0[4] ? a/d converter 0, input 4. p1[31]/ usb_ovrcr2 / sck1/ad0[5] 28 [2] i/o p1[31] ? general purpose digital input/output pin. i usb_ovrcr2 ? over-current status for usb port 2. i/o sck1 ? serial clock for ssp1. i ad0[5] ? a/d converter 0, input 5. p2[0] to p2[31] i/o port 2: port 2 is a 32 bit i/o port with individual direction controls for each bit. the operation of port 2 pins depends upon the pin function selected via the pin connect block. pins 14 through 31 of this port are not available. p2[0]/pwm1[1]/ txd1/ traceclk 107 [1] i/o p2[0] ? general purpose digital input/output pin. o pwm1[1] ? pulse width modulator 1, channel 1 output. o txd1 ? transmitter output for uart1. o traceclk ? trace clock. p2[1]/pwm1[2]/ rxd1/ pipestat0 106 [1] i/o p2[1] ? general purpose digital input/output pin. o pwm1[2] ? pulse width modulator 1, channel 2 output. i rxd1 ? receiver input for uart1. o pipestat0 ? pipeline status, bit 0. table 3. pin description ?continued symbol pin type description
lpc2388_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.02 ? 28 january 2008 11 of 57 nxp semiconductors lpc2388 fast communication chip p2[2]/pwm1[3]/ cts1/ pipestat1 105 [1] i/o p2[2] ? general purpose digital input/output pin. o pwm1[3] ? pulse width modulator 1, channel 3 output. i cts1 ? clear to send input for uart1. o pipestat1 ? pipeline status, bit 1. p2[3]/pwm1[4]/ dcd1/ pipestat2 100 [1] i/o p2[3] ? general purpose digital input/output pin. o pwm1[4] ? pulse width modulator 1, channel 4 output. i dcd1 ? data carrier detect input for uart1. o pipestat2 ? pipeline status, bit 2. p2[4]/pwm1[5]/ dsr1/ tracesync 99 [1] i/o p2[4] ? general purpose digital input/output pin. o pwm1[5] ? pulse width modulator 1, channel 5 output. i dsr1 ? data set ready input for uart1. o tracesync ? trace synchronization. p2[5]/pwm1[6]/ dtr1/ tracepkt0 97 [1] i/o p2[5] ? general purpose digital input/output pin. o pwm1[6] ? pulse width modulator 1, channel 6 output. o dtr1 ? data terminal ready output for uart1. o tracepkt0 ? trace packet, bit 0. p2[6]/pcap1[0]/ ri1/ tracepkt1 96 [1] i/o p2[6] ? general purpose digital input/output pin. i pcap1[0] ? capture input for pwm1, channel 0. i ri1 ? ring indicator input for uart1. o tracepkt1 ? trace packet, bit 1. p2[7]/rd2/ rts1/ tracepkt2 95 [1] i/o p2[7] ? general purpose digital input/output pin. i rd2 ? can2 receiver input. o rts1 ? request to send output for uart1. o tracepkt2 ? trace packet, bit 2. p2[8]/td2/ txd2/ tracepkt3 93 [1] i/o p2[8] ? general purpose digital input/output pin. o td2 ? can2 transmitter output. o txd2 ? transmitter output for uart2. o tracepkt3 ? trace packet, bit 3. p2[9]/ usb_connect1/ rxd2/ extin0 92 [1] i/o p2[9] ? general purpose digital input/output pin. o usb_connect1 ? usb port 1 soft connect control. signal used to switch an external 1.5 k resistor under the software control. used with the softconnect usb feature. i rxd2 ? receiver input for uart2. i extin0 ? external trigger input. p2[10]/ eint0 76 [6] i/o p2[10] ? general purpose digital input/output pin. note: low on this pin while reset is low forc es on-chip boot-loader to take over control of the part after a reset. i eint0 ? external interrupt 0 input. table 3. pin description ?continued symbol pin type description
lpc2388_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.02 ? 28 january 2008 12 of 57 nxp semiconductors lpc2388 fast communication chip p2[11]/ eint1 / mcidat1/ i2stx_clk 75 [6] i/o p2[11] ? general purpose digital input/output pin. i eint1 ? external interrupt 1 input. o mcidat1 ? data line for sd/mmc interface. i/o i2stx_clk ? transmit clock. it is driven by the master and received by the slave. corresponds to the signal sck in the i 2 s-bus specification . p2[12]/ eint2 / mcidat2/ i2stx_ws 73 [6] i/o p2[12] ? general purpose digital input/output pin. i eint2 ? external interrupt 2 input. o mcidat2 ? data line for sd/mmc interface. i/o i2stx_ws ? transmit word select. it is driven by the master and received by the slave. corresponds to the signal ws in the i 2 s-bus specification . p2[13]/ eint3 / mcidat3/ i2stx_sda 71 [6] i/o p2[13] ? general purpose digital input/output pin. i eint3 ? external interrupt 3 input. o mcidat3 ? data line for sd/mmc interface. i/o i2stx_sda ? transmit data. it is driven by the transmitter and read by the receiver. corresponds to the signal sd in the i 2 s-bus specification . p3[0] to p3[31] i/o port 3: port 3 is a 32 bit i/o port with indivi dual direction controls for each bit. the operation of port 3 pins depends upon the pin function selected via the pin connect block. pins 8 through 22, and 27 through 31 of this port are not available. p3[0]/d0 137 [1] i/o p3[0] ? general purpose digital input/output pin. i/o d0 ? external memory data line 0. p3[1]/d1 140 [1] i/o p3[1] ? general purpose digital input/output pin. i/o d1 ? external memory data line 1. p3[2]/d2 144 [1] i/o p3[2] ? general purpose digital input/output pin. i/o d2 ? external memory data line 2. p3[3]/d3 2 [1] i/o p3[3] ? general purpose digital input/output pin. i/o d3 ? external memory data line 3. p3[4]/d4 9 [1] i/o p3[4] ? general purpose digital input/output pin. i/o d4 ? external memory data line 4. p3[5]/d5 12 [1] i/o p3[5] ? general purpose digital input/output pin. i/o d5 ? external memory data line 5. p3[6]/d6 16 [1] i/o p3[6] ? general purpose digital input/output pin. i/o d6 ? external memory data line 6. p3[7]/d7 19 [1] i/o p3[7] ? general purpose digital input/output pin. i/o d7 ? external memory data line 7. p3[23]/cap0[0]/ pcap1[0] 45 [1] i/o p3[23] ? general purpose digital input/output pin. i cap0[0] ? capture input for timer 0, channel 0. i pcap1[0] ? capture input for pwm1, channel 0. p3[24]/cap0[1]/ pwm1[1] 40 [1] i/o p3[24] ? general purpose digital input/output pin. i cap0[1] ? capture input for timer 0, channel 1. o pwm1[1] ? pulse width modulator 1, output 1. table 3. pin description ?continued symbol pin type description
lpc2388_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.02 ? 28 january 2008 13 of 57 nxp semiconductors lpc2388 fast communication chip p3[25]/mat0[0]/ pwm1[2] 39 [1] i/o p3[25] ? general purpose digital input/output pin. o mat0[0] ? match output for timer 0, channel 0. o pwm1[2] ? pulse width modulator 1, output 2. p3[26]/mat0[1]/ pwm1[3] 38 [1] i/o p3[26] ? general purpose digital input/output pin. o mat0[1] ? match output for timer 0, channel 1. o pwm1[3] ? pulse width modulator 1, output 3. p4[0] to p4[31] i/o port 4: port 4 is a 32 bit i/o port with indivi dual direction controls for each bit. the operation of port 4 pins depends upon the pin function selected via the pin connect block. pins 16 through 23, 26, and 27 of this port are not available. p4[0]/a0 52 [1] i/o p4[0] ? ]general purpose digital input/output pin. i/o a0 ? external memory address line 0. p4[1]/a1 55 [1] i/o p4[1] ? general purpose digital input/output pin. i/o a1 ? external memory address line 1. p4[2]/a2 58 [1] i/o p4[2] ? general purpose digital input/output pin. i/o a2 ? external memory address line 2. p4[3]/a3 68 [1] i/o p4[3] ? general purpose digital input/output pin. i/o a3 ? external memory address line 3. p4[4]/a4 72 [1] i/o p4[4] ? general purpose digital input/output pin. i/o a4 ? external memory address line 4. p4[5]/a5 74 [1] i/o p4[5] ? general purpose digital input/output pin. i/o a5 ? external memory address line 5. p4[6]/a6 78 [1] i/o p4[6] ? general purpose digital input/output pin. i/o a6 ? external memory address line 6. p4[7]/a7 84 [1] i/o p4[7] ? general purpose digital input/output pin. i/o a7 ? external memory address line 7. p4[8]/a8 88 [1] i/o p4[8] ? general purpose digital input/output pin. i/o a8 ? external memory address line 8. p4[9]/a9 91 [1] i/o p4[9] ? general purpose digital input/output pin. i/o a9 ? external memory address line 9. p4[10]/a10 94 [1] i/o p4[10] ? general purpose digital input/output pin. i/o a10 ? external memory address line 10. p4[11]/a11 101 [1] i/o p4[11] ? general purpose digital input/output pin. i/o a11 ? external memory address line 11. p4[12]/a12 104 [1] i/o p4[12] ? general purpose digital input/output pin. i/o a12 ? external memory address line 12. p4[13]/a13 108 [1] i/o p4[13] ? general purpose digital input/output pin. i/o a13 ? external memory address line 13. p4[14]/a14 110 [1] i/o p4[14] ? general purpose digital input/output pin. i/o a14 ? external memory address line 14. p4[15]/a15 120 [1] i/o p4[15] ? general purpose digital input/output pin. i/o a15 ? external memory address line 15. table 3. pin description ?continued symbol pin type description
lpc2388_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.02 ? 28 january 2008 14 of 57 nxp semiconductors lpc2388 fast communication chip p4[24]/ oe 127 [1] i/o p4[24] ? general purpose digital input/output pin. o oe ? low active output enable signal. p4[25]/bls0 124 [1] i/o p4[25] ? general purpose digital input/output pin. o bls0 ? low active byte lane select signal 0. p4[28]/mat2[0]/ txd3 118 [1] i/o p4 [28] ? general purpose digital input/output pin. o mat2[0] ? match output for timer 2, channel 0. o txd3 ? transmitter output for uart3. p4[29]/mat2[1]/ rxd3 122 [1] i/o p4[29] ? general purpose digital input/output pin. o mat2[1] ? match output for timer 2, channel 1. i rxd3 ? receiver input for uart3. p4[30]/ cs0 130 [1] i/o p4[30] ? general purpose digital input/output pin. o cs0 ? low active chip select 0 signal. p4[31]/ cs1 134 [1] i/o p4[31] ? general purpose digital input/output pin. o cs1 ? low active chip select 1 signal. alarm 26 [8] o alarm ? rtc controlled output. this is a 1.8 v pin. it goes high when a rtc alarm is generated. usb_d ? 2 37 i/o usb_d ? 2 ? usb port 2 bidirectional d ? line. dbgen 6 [1] i dbgen ? jtag interface control signal. also used for boundary scanning. tdo 1 [1] o tdo ? test data out for jtag interface. tdi 3 [1] i tdi ? test data in for jtag interface. tms 4 [1] i tms ? test mode select for jtag interface. trst 5 [1] i trst ? test reset for jtag interface. tck 7 [1] i tck ? test clock for jtag interface. th is clock must be slower than 1 ? 6 of the cpu clock (cclk) for the jtag interface to operate. rtck 143 [1] i/o rtck ? jtag interface control signal. note: low on this pin while reset is low enables etm pins (p2[9:0]) to operate as trace port after reset. rstout 20 o rstout ? this is a 3.3 v pin. low on this pin indicates lpc2388 being in reset state. reset 24 [7] i external reset input: a low on this pin resets the device, causing i/o ports and peripherals to take on their default states, and processor execution to begin at address 0. ttl with hysteresis, 5 v tolerant. xtal1 31 [8] i input to the oscillator circuit and internal clock generator circuits. xtal2 33 [8] o output from the o scillator amplifier. rtcx1 23 [8] i input to the rtc oscillator circuit. rtcx2 25 [8] o output from the rtc oscillator circuit. v ss 22, 44, 59, 65, 79, 103, 117,119, 139 [9] i ground: 0 v reference. v ssa 15 [10] i analog ground: 0 v reference. this should nominally be the same voltage as v ss , but should be isolated to minimize noise and error. table 3. pin description ?continued symbol pin type description
lpc2388_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.02 ? 28 january 2008 15 of 57 nxp semiconductors lpc2388 fast communication chip [1] 5 v tolerant pad providing digital i/o functions with ttl levels and hysteresis. [2] 5 v tolerant pad providing digital i/o functions (with ttl levels and hysteresis) and analog input. when configured as a dac input, digital section of the pad is disabled. [3] 5 v tolerant pad providing digital i/o with ttl levels and hysteresis and analog output function. when configured as the dac outp ut, digital section of the pad is disabled. [4] open-drain 5 v tolerant digital i/o i 2 c-bus 400 khz specification compatible pad. it requires an external pull-up to provide output functionality. when power is switch ed off, this pin connected to the i 2 c-bus is floating and does not disturb the i 2 c lines. open-drain configuration applies to al l functions on this pin. [5] pad provides digital i/o and usb functi ons. it is designed in accordance with the usb specification, revision 2.0 (full-speed and low-speed mode only). [6] 5 v tolerant pad with 5 ns glitch filter providing digital i/o functions with ttl le vels and hysteresis. [7] 5 v tolerant pad with 20 ns glitch filter providing digital i/o f unction with ttl leve ls and hysteresis. [8] pad provides special analog functionality. [9] pad provides special analog functionality. [10] pad provides special analog functionality. [11] pad provides special analog functionality. [12] pad provides special analog functionality. [13] pad provides special analog functionality. [14] pad provides special analog functionality. 7. functional description 7.1 architectural overview the lpc2388 microcontroller consists of an arm7tdmi-s cpu with emulation support, the arm7 local bus for closely coupled, high-speed access to the majority of on-chip memory, the amba ahb interfacing to high- speed on-chip peripherals and external memory, and the amba apb for co nnection to other on-chip pe ripheral functions. the microcontroller permanently configures the ar m7tdmi-s processor for little-endian byte order. v dd(3v3) 41, 62, 77, 102, 114, 138 [11] i 3.3 v supply voltage: this is the power supply voltage for the i/o ports. n.c. 21, 81, 98 [12] i leave these pins unconnected. v dd(dcdc)(3v3) 18, 60, 121 [13] i 3.3 v dc-to-dc converter supply voltage: this is the power supply for the on-chip dc-to-dc converter only. v dda 14 [14] i analog 3.3 v pad supply voltage: this should be nominally the same voltage as v dd(3v3) but should be isolated to minimize noise and error. this voltage is used to power the adc and dac. vref 17 [14] i adc reference: this should be nominally the same voltage as v dd(3v3) but should be isolated to minimize noise and error. the level on this pin is used as a reference for adc and dac. vbat 27 [14] i rtc power supply: 3.3 v on this pin supplies the power to the rtc peripheral. table 3. pin description ?continued symbol pin type description
lpc2388_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.02 ? 28 january 2008 16 of 57 nxp semiconductors lpc2388 fast communication chip the lpc2388 implements two ahb in order to a llow the ethernet block to operate without interference caused by other system activi ty. the primary ahb, referred to as ahb1, includes the vic, gpdma controller, and emc. the second ahb, referred to as ahb2, in cludes only the ethernet block and an associated 16 kb sram. in addition, a bus bridge is provided that allows the secondary ahb to be a bus master on ahb1, allowing expansion of ethernet buffer space into off-chip memory or unused space in memory residing on ahb1. in summary, bus masters with access to ahb1 are the arm7 itself, the gpdma function, and the ethernet block (via the bus bridge from ahb2). bus masters wi th access to ahb2 are the arm7 and the ethernet block. ahb peripherals are allocated a 2 mb range of addresses at the very top of the 4 gb arm memory space. each ahb peripheral is allocated a 16 kb address space within the ahb address space. lo wer speed periph eral functions are conn ected to the apb. the ahb to apb bridge interfaces the apb to the ahb. apb periph erals are also allocated a 2 mb range of addresses, beginning at the 3.5 gb address point. each apb peripheral is allocated a 16 kb address space within the apb address space. the arm7tdmi-s processor is a general purp ose 32-bit microprocessor, which offers high performance and very low power consumpt ion. the arm architecture is based on reduced instruction set comput er (risc) principles, and the instruction set and related decode mechanism are much simpler than those of microprogrammed complex instruction set computers. this simplicity results in a high instruction throughput and impressive real-time interrupt response from a small and cost-effective processor core. pipeline techniques are employed so that all parts of the processing and memory systems can operate continuously. typically, while one instruction is being executed, its successor is being decoded, and a third instruction is being fetched from memory. the arm7tdmi-s processor also employs a unique architectural strategy known as thumb, which makes it ideally suited to high-volume applications with memory restrictions, or applications where code density is an issue. the key idea behind thumb is that of a super-reduced instruction set. essentially, the arm7tdmi-s processor has two instruction sets: ? the standard 32-bit arm set ? a 16-bit thumb set the thumb set?s 16-bit instru ction length allows it to approach twice the density of standard arm code while retaining most of the arm?s performance advantage over a traditional 16-bit processor using 16-bit regist ers. this is possible because thumb code operates on the same 32-bit register set as arm code. thumb code is able to provide up to 65 % of the code size of arm, and 160 % of the performance of an equivalent arm processo r connected to a 16-bit memory system.
lpc2388_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.02 ? 28 january 2008 17 of 57 nxp semiconductors lpc2388 fast communication chip 7.2 on-chip flash programming memory the lpc2388 incorporates a 512 kb flash memory system. this memory may be used for both code and data storage. programming of the flash memory may be accomplished in several ways. it may be programmed in system via the serial port (uart0). the application program may also erase and/or program the flash while the application is running, allowing a great degree of flexibility for data st orage field and fi rmware upgrades. the flash memory is 128 bits wide and includes pre-fetching and buffering techniques to allow it to operate at sram speeds of 72 mhz. the lpc2388 provides a minimum of 100 000 write/erase cycles and 20 years of data retention. 7.3 on-chip sram the lpc2388 includes a sram memory of 64 kb reserved for the arm processor exclusive use. this ram may be used for code and/or data storage and may be accessed as 8 bits, 16 bits, and 32 bits. a 16 kb sram block serving as a buffer for the ethernet controller and a 16 kb sram associated with the usb device can be used both for data and code storage, too. the 2 kb rtc can be used for data storage only. the rtc sram is battery powered and retains the content in the absence of the main power supply. 7.4 memory map the lpc2388 memory map incorporates several distinct regions as shown in figure 3 . in addition, the cpu interrupt vectors may be remapped to allow them to reside in either flash memory (default), boot rom, or sram (see section 7.26.6 ).
lpc2388_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.02 ? 28 january 2008 18 of 57 nxp semiconductors lpc2388 fast communication chip 7.5 interrupt controller the arm processor core has two interrupt inputs called interrupt request (irq) and fast interrupt request (fiq). the vic takes 32 interrupt request inputs which can be programmed as fiq or vectored irq types. the programmable assignment scheme means that priorities of interrupts from the various peripherals can be dynamically assigned and adjusted. fig 3. lpc2388 memory map 0.0 gb 1.0 gb total of 512 kb on-chip non-volatile memory 0x0000 0000 0x0007 ffff 0x0008 0000 reserved for on-chip memory 64 kb local on-chip static ram reserved address space reserved address space 0x4000 0000 0x4001 0000 0x7fd0 0000 0x7fe0 0000 0x7fd0 3fff 0x7fe0 3fff 0x4000 ffff 2.0 gb 0x8000 0000 boot rom and boot flash (boot flash remapped from on-chip flash) 3.0 gb 0xc000 0000 reserved address space 3.75 gb 4.0 gb 3.5 gb ahb peripherals apb peripherals 0xe000 0000 0xf000 0000 0xffff ffff usb ram (16 kb) ethernet ram (16 kb) 002aad331
lpc2388_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.02 ? 28 january 2008 19 of 57 nxp semiconductors lpc2388 fast communication chip fiqs have the highest priority. if more than one request is assigned to fiq, the vic ors the requests to produce the fiq signal to the arm processor. the fastest possible fiq latency is achieved when only one request is classified as fiq, because then the fiq service routine can simply start dealing with that device. but if more than one request is assigned to the fiq class, the fiq service ro utine can read a word from the vic that identifies which fiq source(s) is (are) requesting an interrupt. vectored irqs, which include all interrupt reques ts that are not classified as fiqs, have a programmable interrupt priority. when more than one interrupt is assigned the same priority and occur simultaneously, the one connected to the lowest numbered vic channel will be serviced first. the vic ors the requests from all of the vect ored irqs to produce the irq signal to the arm processor. the irq service routine can st art by reading a register from the vic and jumping to the address supplied by that register. 7.5.1 interrupt sources each peripheral device has one interrupt line connected to the vic but may have several interrupt flags. individual interrupt flags may also represent more than one interrupt source. any pin on port0 and port2 (total of 46 pi ns) regardless of the selected function, can be programmed to generate an interrupt on a rising edge, a falling edge, or both. such interrupt request co ming from port0 and/or port2 will be combined with the eint3 interrupt requests. 7.6 pin connect block the pin connect block allows selected pins of the microcontroller to have more than one function. configuration registers control the multiplexers to allow connection between the pin and the on chip peripherals. peripherals should be connected to the appropriate pins prior to being activated and prior to any related interrupt(s) being enabled. activi ty of any enabled peripheral function that is not mapped to a related pin should be considered undefined. 7.7 external memory controller the lpc2388 emc is an arm primecell multiport memory controller peripheral offering support for asynchronous static memory dev ices such as ram, rom, and flash. in addition, it can be used as an interfac e with off-chip memory-mapped devices and peripherals. the emc is an advanced microc ontroller bus architecture (amba) compliant peripheral. 7.7.1 features ? asynchronous static memory device suppor t including ram, rom, and flash, with or without asynchronous page mode ? low transaction latency ? read and write buffers to reduce latency and to improve performance ? 8 data and 16 address lines wide static memory support ? two chip selects for static memory devices
lpc2388_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.02 ? 28 january 2008 20 of 57 nxp semiconductors lpc2388 fast communication chip ? static memory features include: ? asynchronous page mode read ? programmable wait states (wst) ? bus turnaround delay ? output enable and write enable delays ? extended wait 7.8 general purpose dma controller the gpdma is an amba ahb compliant peripheral allowing selected lpc2388 peripherals to have dma support. the gpdma enables peripheral-to-memory, memory-to-peripheral, peripheral-to-peripheral, and memory-to-memory transactions. each dma stream provides unidirectional serial dma transfer s for a single source and destination. for example, a bidirectional port requires one st ream for transmit and one for receive. the source and destination areas can each be either a memory region or a peripheral, and can be accessed through the ahb master. 7.8.1 features ? two dma channels. each channel can support a unidirectional transfer. ? the gpdma can transfer data between the 16 kb sram and peripherals such as the sd/mmc, two ssp, and i 2 s interfaces. ? single dma and burst dma request signals. each peripheral connected to the gpdma can assert either a burst dma request or a single dma request. the dma burst size is set by programming the gpdma. ? memory-to-memory, memory-to-peripheral, peripheral-to-memory, and peripheral-to-peripheral transfers. ? scatter or gather dma is supported through the use of linked lists. this means that the source and destination areas do not hav e to occupy contiguous areas of memory. ? hardware dma chan nel priority. each dma channel has a specific hardware priority. dma channel 0 has the highest priority and channel 1 has the lowest priority. if requests from two channels become active at the same time, the channel with the highest priority is serviced first. ? ahb slave dma programming interface. the gpdma is programmed by writing to the dma control registers over the ahb slave interface. ? one ahb master for transferring data. this interface transfers data when a dma request goes active. ? 32-bit ahb master bus width. ? incrementing or non-incrementing addressing for source and destination. ? programmable dma burst size. the dma burst size can be programmed to more efficiently transfer data. usually the burst size is set to half the size of the fifo in the peripheral. ? internal four-word fifo per channel. ? supports 8-bit, 16-bit, and 32-bit wide transactions.
lpc2388_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.02 ? 28 january 2008 21 of 57 nxp semiconductors lpc2388 fast communication chip ? an interrupt to the processor can be generated on a dma completion or when a dma error has occurred. ? interrupt masking. the dma error and dma terminal count interrupt requests can be masked. ? raw interrupt status. the dma error and dma count raw interrupt status can be read prior to masking. 7.9 fast general purpose parallel i/o device pins that are not connec ted to a specific peripheral function are controlled by the gpio registers. pins may be dynamically conf igured as inputs or outputs. separate registers allow setting or clearing any number of outputs simultaneously. the value of the output register may be read back as well as the current state of the port pins. lpc2388 use accelerated gpio functions: ? gpio registers are relocated to the arm loca l bus so that the fa stest possible i/o timing can be achieved. ? mask registers allow treating sets of por t bits as a group, leaving other bits unchanged. ? all gpio registers are byte and half-word addressable. ? entire port value can be written in one instruction. additionally, any pin on port0 and port2 (total of 46 pins) providing a digital function can be programmed to ge nerate an interrupt on a rising ed ge, a falling edge , or both. the edge detection is asynchronous, so it may operate when clocks are not present such as during power-down mode. each enabled interrupt can be used to wake up the chip from power-down mode. 7.9.1 features ? bit level set and clear registers allow a single instruction to set or clear any number of bits in one port. ? direction control of individual bits. ? all i/o default to inputs after reset. ? backward compatibility with other earlier dev ices is maintained with legacy port0 and port1 registers appearing at the original addresses on the apb. 7.10 ethernet the ethernet block contains a full featured 10 mbit/s or 100 mbit/s ethernet mac designed to provide optimized performa nce through the use of dma hardware acceleration. features include a generous suite of control registers, half or full duplex operation, flow control, cont rol frames, hardware acceleration for transmit retry, receive packet filtering and wake-up on lan activity. automatic frame transmission and reception with scatter-gather dma off-loads many operations from the cpu. the ethernet block and the cpu share a dedicated ahb subsystem that is used to access the ethernet sram for ethernet data, control, and status information. all other ahb traffic in the lpc2388 takes place on a different ah b subsystem, effectively separating ethernet activity from the rest of the system. the et hernet dma can also a ccess off-chip memory
lpc2388_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.02 ? 28 january 2008 22 of 57 nxp semiconductors lpc2388 fast communication chip via the emc, as well as the sram located on an other ahb, if it is not being used by the usb block. however, using me mory other than the ethernet sram, especially off-chip memory, will slow ethernet ac cess to memory and increa se the loading of its ahb. the ethernet block interfaces between an off-chip ethernet phy using the reduced mii (rmii) protocol and the on-chip media independent interface management (miim) serial bus. 7.10.1 features ? ethernet standards support: ? supports 10 mbit/s or 100 mbit/s phy devices including 10 base-t, 100 base-tx, 100 base-fx, and 100 base-t4. ? fully compliant with ieee standard 802.3. ? fully compliant with 802.3x full duplex flow contro l and half duplex back pressure. ? flexible transmit and receive frame options. ? virtual local area network (vlan) frame support. ? memory management: ? independent transmit and receive buffers memory mapped to shared sram. ? dma managers with scatter/gather dma and arrays of frame descriptors. ? memory traffic optimized by buffering and pre-fetching. ? enhanced ethernet features: ? receive filtering. ? multicast and broadcast frame support for both transmit and receive. ? optional automatic frame check sequence (fcs) insertion with circular redundancy check (crc) for transmit. ? selectable automatic transmit frame padding. ? over-length frame support for both transmit and receive allows any length frames. ? promiscuous receive mode. ? automatic collision back-off and frame retr ansmission. ? includes power management by clock switching. ? wake-on-lan power management support allows system wake-up: using the receive filters or a magic frame detection filter. ? physical interface: ? attachment of external phy chip through standard rmii interface. ? phy register access is available via the miim interface.
lpc2388_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.02 ? 28 january 2008 23 of 57 nxp semiconductors lpc2388 fast communication chip 7.11 usb interface the universal serial bu s (usb) is a 4-wire bus that supports communication between a host and one or more (up to 127) peripherals. the host controller allocates the usb bandwidth to attached devices through a token-based protocol. the bus supports hot plugging and dynamic configuration of the devi ces. all transactions are initiated by the host controller. the lpc2388 usb interface includes a device, host, and otg controller. details on typical usb interfacing solutions can be found in section 11.1 . 7.11.1 usb device controller the device controller enables 12 mbit/s data exchange with a usb host controller. it consists of a register interface, serial interface engine, endpoint buffer memory, and a dma controller. the serial interface engine dec odes the usb data stream and writes data to the appropriate endpoint buffer. the status of a completed usb transfer or error condition is indicated via status registers. an interrupt is also generated if enabled. when enabled, the dma controller transfers data between the endpoint buffer and the usb ram. 7.11.1.1 features ? fully compliant with usb 2.0 specification (full speed). ? supports 32 physical (16 logical) endpoints with a 4 kb endpoint buffer ram. ? supports control, bulk, interrupt and isochronous endpoints. ? scalable realization of endpoints at run time. ? endpoint maximum packet size selection (up to usb maximum specification) by software at run time. ? supports softconnect and goodlink features. ? while the usb is in the suspend mode, the lpc2388 can enter one of the reduced power modes and wake up on usb activity. ? supports dma transfers with the dma ram of 16 kb on all non-control endpoints. ? allows dynamic switching betwee n cpu-controlled and dma modes. ? double buffer implementation for bulk and isochronous endpoints. 7.11.2 usb host controller the host controller enables full- and low-speed data exchange with usb devices attached to the bus. it consists of register interface, serial interface engine and dma controller. the register interface complies with the ohci specification. 7.11.2.1 features ? ohci compliant. ? two downstream ports. ? supports per-port power switching.
lpc2388_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.02 ? 28 january 2008 24 of 57 nxp semiconductors lpc2388 fast communication chip 7.11.3 usb otg controller usb otg (on-the-go) is a supplement to th e usb 2.0 specification that augments the capability of existing mobile devices and usb peripherals by adding host functionality for connection to usb peripherals. the otg controller integrates the host contro ller, device controller, and a master-only i 2 c interface to implement otg dual-role device functionality. the dedicated i 2 c interface controls an external otg transceiver. 7.11.3.1 features ? fully compliant with on-the-go supplement to the u sb 2.0 specification, revision 1.0a . ? hardware support for host negotiation protocol (hnp). ? includes a programmable timer required for hnp and session request protocol (srp). ? supports any otg transceiver compliant with the otg transceiver specification (cea-2011), rev. 1.0 . 7.12 can controller and acceptance filters the controller area network (can) is a serial communications protocol which efficiently supports distributed real-time control with a very high level of security. its domain of application ranges from high-speed ne tworks to low cost multiplex wiring. the can block is intended to support multip le can buses simultaneously, allowing the device to be used as a gateway, switch, or router among a number of can buses in industrial or automotive applications. each can controller has a regi ster structure sim ilar to the nxp sja1 000 and the pelican library block, but the 8-bit registers of those devices have been combined in 32-bit words to allow simultaneous access in the arm environment. the main operational difference is that the recognition of received identifiers, known in can terminology as acceptance filtering, has been removed from the can controllers and centralized in a global acceptance filter. 7.12.1 features ? two can controllers and buses. ? data rates to 1 mbit/s on each bus. ? 32-bit register and ram access. ? compatible with can specification 2.0b, iso 11898-1 . ? global acceptance filter recognizes 11-bit and 29-bit receive identifiers for all can buses. ? acceptance filter can provide fullcan-s tyle automatic reception for selected standard identifiers. ? full can messages can g enerate interrupts.
lpc2388_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.02 ? 28 january 2008 25 of 57 nxp semiconductors lpc2388 fast communication chip 7.13 10-bit adc the lpc2388 contains one adc. it is a single 10-bit successive approximation adc with eight channels. 7.13.1 features ? 10-bit successive approximation adc ? input multiplexing among 8 pins ? power-down mode ? measurement range 0 v to v i(vref) ? 10-bit conversion time 2.44 s ? burst conversion mode for single or multiple inputs ? optional conversion on transition of input pin or timer match signal ? individual result registers for each adc channel to reduce interrupt overhead 7.14 10-bit dac the dac allows the lpc2388 to generate a variable analog output. the maximum output value of the dac is v i(vref) . 7.14.1 features ? 10-bit dac ? resistor string architecture ? buffered output ? power-down mode ? selectable output drive 7.15 uarts the lpc2388 contains four uarts. in additi on to standard transmit and receive data lines, uart1 also provides a full modem control handshake interface. the uarts include a fractional baud rate generator. standard baud rates such as 115 200 can be achieved with any crystal frequency above 2 mhz. 7.15.1 features ? 16 b receive and transmit fifos. ? register locations conform to 16c550 industry standard. ? receiver fifo trig ger points at 1 b, 4 b, 8 b, and 14 b. ? built-in fractional baud rate generator cove ring wide range of baud rates without a need for external crystals of particular values. ? fractional divider for baud rate control, auto baud capabilities and fifo control mechanism that enables software flow control implementation. ? uart1 equipped with standard modem interface signals. this module also provides full support for hardware flow control (auto-cts/rts).
lpc2388_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.02 ? 28 january 2008 26 of 57 nxp semiconductors lpc2388 fast communication chip ? uart3 includes an irda mode to support infrared communication. 7.16 spi serial i/o controller the lpc2388 contains one spi controller. spi is a full duplex serial interface designed to handle multiple masters and slaves connected to a given bus. only a single master and a single slave can communicate on the interface during a given data transfer. during a data transfer the mast er always sends 8 bits to 16 bits of data to the slave, and the slave always sends 8 bits to 16 bits of data to the master. 7.16.1 features ? compliant with spi specification ? synchronous, serial, full duplex communication ? combined spi master and slave ? maximum data bit rate of one eighth of the input clock rate ? 8 bits to 16 bits per transfer 7.17 ssp serial i/o controller the lpc2388 contains two ssp controllers. the ssp controller is capable of operation on a spi, 4-wire ssi, or microwire bus. it can interact with multiple masters and slaves on the bus. only a single master and a single slav e can communicate on the bus during a given data transfer. the ssp supports full duplex transfers, with frames of 4 bits to 16 bits of data flowing from the master to the slave an d from the slave to the master. in practice, often only one of these data flows carries meaningful data. 7.17.1 features ? compatible with motorola spi , 4-wire ti ssi, and national semiconductor microwire buses ? synchronous serial communication ? master or slave operation ? 8-frame fifos for both transmit and receive ? 4-bit to 16-bit frame ? dma transfers supported by gpdma 7.18 sd/mmc card interface the secure digital and multimed ia card interface (mci) allows access to external sd memory cards. the sd card interface conforms to the sd multimedia card specification version 2.11. 7.18.1 features ? the mci provides all functions specific to the sd/mmc memory card. these include the clock generation unit, power management control, and command and data transfer. ? conforms to multimedia card specification v2.11 . ? conforms to secure digital memory card phys ical layer specification, v0.96.
lpc2388_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.02 ? 28 january 2008 27 of 57 nxp semiconductors lpc2388 fast communication chip ? can be used as a multimedia card bus or a secure digital memory card bus host. the sd/mmc can be connected to several multimedia cards or a single secure digital memory card. ? dma supported through the gpdma controller. 7.19 i 2 c-bus serial i/o controllers the lpc2388 contains three i 2 c-bus controllers. the i 2 c-bus is bidirectional, for inter-ic contro l using only two wires: a serial clock line (scl), and a serial data line (sda). each device is recognized by a unique address and can operate as either a receiver-only device (e.g., an lcd driver) or a transmitter with the capability to both receive and send information (such as me mory). transmitters and/or receivers can operate in either master or sl ave mode, depending on whether the chip has to initiate a data transfer or is only addressed. the i 2 c-bus is a multi-master bus and can be controlled by more than one bus master connected to it. the i 2 c-bus implemented in lpc2388 supports bit rates up to 400 kbit/s (fast i 2 c-bus). 7.19.1 features ? i 2 c0 is a standard i 2 c compliant bus interface with open-drain pins. ? i 2 c1 and i 2 c2 use standard i/o pins and do not support powering off of individual devices connected to the same bus lines. ? easy to configure as master, slave, or master/slave. ? programmable clocks allow versatile rate control. ? bidirectional data transfer between masters and slaves. ? multi-master bus (no central master). ? arbitration between simultaneously transmit ting masters without corruption of serial data on the bus. ? serial clock synchronization allows devices with different bit rates to communicate via one serial bus. ? serial clock synchronization can be used as a handshake mechanism to suspend and resume serial transfer. ? the i 2 c-bus can be used for test and diagnostic purposes. 7.20 i 2 s-bus serial i/o controllers the i 2 s-bus provides a standard communication interface for digital audio applications. the i 2 s-bus specification defines a 3-wire serial bus using one data line, one clock line, and one word select signal. the basic i 2 s-bus connection has one master, which is always the master, and one slave. the i 2 s interface on the lpc2388 provides a separate transmit and receive channel, each of which can operate as either a master or a slave. 7.20.1 features ? the interface has separate input/output chan nels each of which can operate in master or slave mode. ? capable of handling 8-bit, 16-bit, and 32-bit word sizes.
lpc2388_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.02 ? 28 january 2008 28 of 57 nxp semiconductors lpc2388 fast communication chip ? mono and stereo audio data supported. ? the sampling frequency can range from 16 khz to 48 khz ((16, 22.05, 32, 44.1, 48) khz). ? configurable word select period in master mode (separately for i 2 s input and output). ? two 8 word fifo data buffers are provided, one for transmit and one for receive. ? generates interrupt requests when buffer levels cross a programmable boundary. ? two dma requests, controlled by programma ble buffer levels. these are connected to the gpdma block. ? controls include reset, stop and mute options separately for i 2 s input and i 2 s output. 7.21 general purpose 32-bit time rs/external event counters the lpc2388 includes four 32-bit timer/co unters. the timer/counter is designed to count cycles of the system derived clock or an externally-supplied clock. it can optionally generate interrupts or perform other actions at specified timer values, based on four match registers. the timer/counter also inclu des four capture inputs to trap the timer value when an input signal transitions, optionally generating an interrupt. 7.21.1 features ? a 32-bit timer/counter with a programmable 32-bit prescaler. ? counter or timer operation. ? up to four 32-bit capture channels per time r, that can take a snapshot of the timer value when an input signal transitions. a capture event may also optionally generate an interrupt. ? four 32-bit match registers that allow: ? continuous operation with optional interrupt generation on match. ? stop timer on match with optional interrupt generation. ? reset timer on match with optional interrupt generation. ? up to four external outputs corresponding to match registers, with the following capabilities: ? set low on match. ? set high on match. ? toggle on match. ? do nothing on match. 7.22 pulse width modulator the pwm is based on the standard timer block and inherits all of its features, although only the pwm function is pinned out on t he lpc2388. the timer is designed to count cycles of the system derived clock and optiona lly switch pins, gene rate interrupts or perform other actions when specified timer va lues occur, based on seven match registers. the pwm function is in addition to these feat ures, and is based on match register events.
lpc2388_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.02 ? 28 january 2008 29 of 57 nxp semiconductors lpc2388 fast communication chip the ability to separately contro l rising and falling edge locations allo ws the pwm to be used for more applications. for instance, mu lti-phase motor control typically requires three non-overlapping pwm outputs with individual control of all three pulse widths and positions. two match registers can be used to provide a single edge controlled pwm output. one match register (pwmmr0) controls the pwm cycle rate, by resetting the count upon match. the other match register controls th e pwm edge position. additional single edge controlled pwm outputs require only one match re gister each, since the repetition rate is the same for all pwm outputs. multiple single edge contro lled pwm outputs will all have a rising edge at the beginning of each pwm cycle, when an pwmmr0 match occurs. three match registers can be used to provid e a pwm output with both edges controlled. again, the pwmmr0 match register contro ls the pwm cycle rate. the other match registers control the two pwm edge positi ons. additional double edge controlled pwm outputs require only two match registers each, si nce the repetition rate is the same for all pwm outputs. with double edge controlled pwm outputs, spec ific match registers control the rising and falling edge of the output. this allows both positive going pwm pulses (when the rising edge occurs prior to the fa lling edge), and negative goi ng pwm pulses (when the falling edge occurs prior to the rising edge). 7.22.1 features ? lpc2388 has one pwm block with counter or timer operation (may use the peripheral clock or one of the capture inputs as the clock source). ? seven match registers allow up to 6 single edge controlled or 3 double edge controlled pwm outputs, or a mix of bot h types. the match registers also allow: ? continuous operation with optional interrupt generation on match. ? stop timer on match with optional interrupt generation. ? reset timer on match with optional interrupt generation. ? supports single edge controlled and/or double edge controlled pwm outputs. single edge controlled pwm outputs all go high at the beginning of each cycle unless the output is a constant low. double edge controlled pwm outputs can have either edge occur at any position within a cycle. this a llows for both positive going and negative going pulses. ? pulse period and width can be any number of timer counts. this allows complete flexibility in the trad e-off between resolution and re petition rate. all pwm outputs will occur at the same repetition rate. ? double edge controlled pwm outputs can be programmed to be either positive going or negative going pulses. ? match register updates are synchronized wit h pulse outputs to prevent generation of erroneous pulses. software must ?release? new match values before they can become effective. ? may be used as a standard timer if the pwm mode is not enabled. ? a 32-bit timer/counter with a programmable 32-bit prescaler.
lpc2388_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.02 ? 28 january 2008 30 of 57 nxp semiconductors lpc2388 fast communication chip 7.23 watchdog timer the purpose of the watchdog is to reset the mi crocontroller within a reasonable amount of time if it enters an erroneou s state. when enabl ed, the watchdog w ill generate a system reset if the user program fails to ?feed? (o r reload) the watchdog within a predetermined amount of time. 7.23.1 features ? internally resets chip if not period ically reloaded. ? debug mode. ? enabled by software but requires a hardware reset or a watchdog reset/interrupt to be disabled. ? incorrect/incomplete feed sequence causes reset/interrupt if enabled. ? flag to indicate watchdog reset. ? programmable 32-bit timer with internal prescaler. ? selectable time period from (t cy(wdclk) 256 4) to (t cy(wdclk) 2 32 4) in multiples of t cy(wdclk) 4. ? the watchdog clock (wdclk) source can be selected from the rtc clock, the internal rc oscillator (irc), or the apb peripheral clock. this gives a wide range of potential timing choices of watchdog o peration under different power reduction conditions. it also provides the ability to ru n the wdt from an entirely internal source that is not dependent on an external crystal and its associated components and wiring, for incr eased reliability. 7.24 rtc and battery ram the rtc is a set of counters for measuring ti me when system power is on, and optionally when it is off. it uses little power in po wer-down mode. on the lpc2388, the rtc can be clocked by a separate 32.768 khz oscillator or by a progra mmable prescale divider based on the apb clock. also, the rt c is powered by it s own power supply pi n, vbat, which can be connected to a battery or to the same 3.3 v supply used by the rest of the device. the vbat pin supplies power only to the rtc and the battery ram. these two functions require a minimum of power to operate, whic h can be supplied by an external battery. when the cpu and the rest of chip functi ons are stopped and power removed, the rtc can supply an alarm output that can be used by external hardware to restore chip power and resume operation. 7.24.1 features ? measures the passage of time to maintain a calendar and clock. ? ultra low power design to support battery powered systems. ? provides seconds, minutes, hours, day of month, month, year, day of week, and day of year. ? dedicated 32 khz oscillator or programmabl e prescaler from apb clock. ? dedicated power supply pin can be connected to a battery or to the main 3.3 v.
lpc2388_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.02 ? 28 january 2008 31 of 57 nxp semiconductors lpc2388 fast communication chip ? an alarm output pin is included to assist in waking up from power-down mode, or when the chip has had power removed to all functions except the rtc and battery ram. ? periodic interrupts can be generated from in crements of any field of the time registers, and selected fractional second values. ? 2 kb data sram powered by vbat. ? rtc and battery ram power supply is isolated from the rest of the chip. 7.25 clocking and power control 7.25.1 crystal oscillators the lpc2388 includes three independe nt oscillators. these are the main oscillator, the internal rc oscillator, and the rtc oscillator. each oscillator can be used for more than one purpose as required in a particular application. any of the three clock sources can be chosen by software to drive the pll and ultimately the cpu. following reset, the lpc2388 will ope rate from the inte rnal rc oscillator until switched by software. this allows systems to operate without any external crystal and the bootloader code to operate at a known frequency. 7.25.1.1 internal rc oscillator the irc may be used as the clock source for th e wdt, and/or as the clock that drives the pll and subsequently the cpu. the nominal irc frequency is 4 mhz. the irc is trimmed to 1 % accuracy. upon power-up or any chip reset, the lp c2388 uses the irc as the clock source. software may later switch to one of the other available clock sources. 7.25.1.2 main oscillator the main oscillator can be used as the clock so urce for the cpu, with or without using the pll. the main oscillator ope rates at frequencies of 1 mhz to 24 mhz. this frequency can be boosted to a higher frequency, up to the maximum cpu operating frequency, by the pll. the clock selected as the pll inpu t is pllclkin. the arm processor clock frequency is referred to as cclk elsewhere in this document. the frequencies of pllclkin and cclk are the same value unless the pll is active and connected. the clock frequency for each peripheral can be selected individually and is referred to as pclk. refer to section 7.25.2 for additional information. 7.25.1.3 rtc oscillator the rtc oscillator can be used as the clock so urce for the rtc and/or the wdt. also, the rtc oscillator can be used to drive the pll and the cpu. 7.25.2 pll the pll accepts an input clock frequency in the range of 32 khz to 50 mhz. the input frequency is multiplied up to a high frequency, then divided down to provide the actual clock used by the cpu and the usb block. the pll input, in the range of 32 khz to 50 mhz, may initially be divided down by a value ?n?, which may be in the range of 1 to 256. this input divi sion provides a wide range of output frequencies from the same input frequency.
lpc2388_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.02 ? 28 january 2008 32 of 57 nxp semiconductors lpc2388 fast communication chip following the pll input divider is the pll mult iplier. this can multiply the input divider output through th e use of a current controlled oscilla tor (cco) by a value ?m?, in the range of 1 through 32768. the resulting frequency must be in the range of 275 mhz to 550 mhz. the multiplier works by dividing the cco output by the value of m, then using a phase-frequency detector to compare the divided cco output to the multiplier input. the error value is used to adjust the cco frequency. the pll is turned off and bypassed following a chip reset and by entering power-down mode. pll is enabled by software only. the pr ogram must configure and activate the pll, wait for the pll to lock, then conn ect to the pll as a clock source. 7.25.3 wake-up timer the lpc2388 begins operation at power-up and when awakened from power-down mode by using the 4 mhz irc oscillator as the clock source . this allows chip operation to resume quickly. if the main oscillator or the pll is needed by the application, software will need to enable these features and wait for them to st abilize before they are used as a clock source. when the main oscillator is init ially activated, the wake-up timer allows software to ensure that the main oscillator is fully functional before the processor uses it as a clock source and starts to execute instructions. this is im portant at power on, all types of reset, and whenever any of the aforemen tioned functions are turned off for any reason. since the oscillator and other functions are turned off during power-down mode, any wake-up of the processor from power-down mode makes use of the wake-up timer. the wake-up timer monitors the crystal oscilla tor to check whether it is safe to begin code execution. when power is applied to th e chip, or when some event caused the chip to exit power-down mode , some time is requir ed for the oscillator to produce a signal of sufficient amplitude to drive the clock logic. the amount of time depends on many factors, including the rate of v dd(3v3) ramp (in the case of power on), the type of crystal and its electrical characteristics (if a quartz crystal is used), as well as any other external circuitry (e.g., capacitors), and th e characteristics of the oscillator itself under the existing ambient conditions. 7.25.4 power control the lpc2388 supports a variety of power cont rol features. there are three special modes of processor power reduction: idle mode, sleep mode, and power-down mode. the cpu clock rate may also be controlled as needed by changing clock sources, reconfiguring pll values, and/or altering the cpu clock divi der value. this allows a trade-off of power versus processing speed based on application requirements. in addition, peripheral power control allows shutting down the cloc ks to individual on-chip peripherals, allowing fine tuning of power consumption by eliminat ing all dynamic power use in any peripherals that are not required for the application. each of the peripherals has its own clock divider which provides even better power control. the lpc2388 also implements a separate power domain in order to allow turning off power to the bulk of the device while mainta ining operation of the rtc and a small sram, referred to as the battery ram.
lpc2388_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.02 ? 28 january 2008 33 of 57 nxp semiconductors lpc2388 fast communication chip 7.25.4.1 idle mode in idle mode, execution of instructions is suspended until either a reset or interrupt occurs. peripheral functions continue opera tion during idle mode and may generate interrupts to cause the processor to resume execution. idle mode eliminates dynamic power used by the processor itself, memory systems and related controllers, and internal buses. 7.25.4.2 sleep mode in sleep mode, the oscillator is shut down an d the chip receives no internal clocks. the processor state and registers, peripheral registers, and internal sram values are preserved throughout sleep mode and the logic levels of chip pins remain static. the output of the irc is disabled but the irc is not powered down for a fast wake-up later. the 32 khz rtc oscillator is not stopped because the rtc interrupts may be used as the wake-up source. the pll is automatically turned off and disconnected. the cclk and usb clock dividers automati cally get reset to zero. the sleep mode can be terminated and normal operation resumed by either a reset or certain specific interrupts that are able to function without clocks. since all dynamic operation of the chip is suspended, sleep mode reduces chip power consumption to a very low value. the flash memo ry is left on in sleep mode, allowing a very quick wake-up. on the wake-up of sleep mode, if the irc was used before entering sleep mode, the code execution and peripherals activities will resume after 4 cycles expire. if the main external oscillator was used, the code exec ution will resume when 4096 cycles expire. the customers need to reconfigure the pll and clock dividers accordingly. 7.25.4.3 power-down mode power-down mode does everyt hing that sleep mode does, but also turns off the irc oscillator and the flash memory. this save s more power, but requires waiting for resumption of flash operation before execution of code or data access in the flash memory can be accomplished. on the wake-up of power-down mode, if the irc was used before entering power-down mode, it will take irc 60 s to start-up. after this 4 irc cycles will expire before the code execution can then be resumed if the code was running from sram. in the meantime, the flash wake-up timer then counts 4 mhz irc clock cycles to make the 100 s flash start-up time. when it times out, access to the fl ash will be allowed. the customers need to reconfigure the pll and clock dividers accordingly. 7.25.4.4 power domains the lpc2388 provides two independent power dom ains that allow the bulk of the device to have power removed while maintaining operation of the rtc and the battery ram. on the lpc2388, i/o pads are powered by the 3.3 v (v dd(3v3) ) pins, while the v dd(dcdc)(3v3) pin powers the on-chip dc-to-dc converter which in turn provides power to the cpu and most of the peripherals. depending on the lpc2388 application, a design can use two power options to manage power consumption.
lpc2388_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.02 ? 28 january 2008 34 of 57 nxp semiconductors lpc2388 fast communication chip the first option assumes that power consumptio n is not a concern and the design ties the v dd(3v3) and v dd(dcdc)(3v3) pins together. this approach requires only one 3.3 v power supply for both pads, the cpu, and peripherals. while this solution is simple, it does not support powering down the i/o pad ring ?on the fly? while keeping the cpu and peripherals alive. the second option uses tw o power supplies; a 3.3 v supply for the i/o pads (v dd(3v3) ) and a dedicated 3.3 v supply for the cpu (v dd(dcdc)(3v3) ). having the on-chip dc-to-dc converter powered independently from the i/o pad ring enables shutting down of the i/o pad power supply ?on the fly?, while the cpu and peripherals stay active. the vbat pin supplies power only to the rtc and the battery ram. these two functions require a minimum of power to operate, whic h can be supplied by an external battery. when the cpu and the rest of chip functi ons are stopped and power removed, the rtc can supply an alarm output that may be used by external hardware to restore chip power and resume operation. 7.26 system control 7.26.1 reset reset has four sources on the lpc2388: the reset pin, the watchdog reset, power-on reset, and the brownout detection (bod) circuit. the reset pin is a schmitt trigger input pin. assertion of chip reset by any source, once the operating voltage attains a usable level, starts the wake-up timer (see description in section 7.25.3 ? wake-up timer ? ), causing reset to remain asserted until the external reset is de-asserted, the oscillator is running, a fixed number of clocks have passed, and the flash controller has completed its initialization. when the internal reset is removed, the proc essor begins executing at address 0, which is initially the reset vector ma pped from the boot block. at that point, all of the processor and peripheral registers have been in itialized to predetermined values. 7.26.2 brownout detection the lpc2388 includes 2-stage monitoring of the voltage on the v dd(3v3) pins. if this voltage falls below 2.95 v, the bod asserts an interrupt signal to the vectored interrupt controller. this signal can be enabled for inte rrupt in the interrupt enable register in the vic in order to cause a cpu interrupt; if not, software can monitor the signal by reading a dedicated status register. the second stage of low-voltage detection asserts reset to inactivate the lpc2388 when the voltage on the v dd(3v3) pins falls below 2.65 v. this reset prevents alteration of the flash as operation of the various elements of the chip would otherwise become unreliable due to low voltage. the bod circuit maintains this re set down below 1 v, at which point the power-on reset circuitry maintains the overall reset. both the 2.95 v and 2.65 v thresholds include some hysteresis. in normal operation, this hysteresis allows the 2.95 v detection to reliably interrupt, or a regularly executed event loop to sense the condition.
lpc2388_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.02 ? 28 january 2008 35 of 57 nxp semiconductors lpc2388 fast communication chip 7.26.3 code security (code read protection - crp) this feature of the lpc2388 allows user to enabl e different levels of se curity in the system so that access to the on-chip flash and us e of the jtag and isp can be restricted. when needed, crp is invoked by programming a specif ic pattern into a dedicated flash location. iap commands are not affected by the crp. there are three levels of the code read protection. crp1 disables access to chip via the jtag and allows partial flash update (excluding flash sector 0) using a limited set of the isp commands. this mode is useful when crp is required and flash field updates are needed but all sectors can not be erased. crp2 disables access to chip via the jtag and only allows full flash erase and update using a reduced set of the isp commands. running an application with level crp3 selected fully disa bles any access to chip via the jtag pins and the isp. this mode effectively disables isp override using p2[10] pin, too. it is up to the user?s application to provide (if needed) flash update mechanism using iap calls or call reinvoke isp command to enable flash update via uart0. 7.26.4 ahb the lpc2388 implements two ahb in order to a llow the ethernet block to operate without interference caused by other system activi ty. the primary ahb, referred to as ahb1, includes the vectored interrupt controller, gpdma controller, usb interface, and 8 kb sram primarily intended for use by the usb. the second ahb, referred to as ahb2, in cludes only the ethernet block and an associated 16 kb sram. in addition, a bus bridge is provided that allows the secondary ahb to be a bus master on ahb1, allowing expansion of ethernet buffer space into off-chip memory or unused space in memory residing on ahb1. in summary, bus masters with access to ahb1 are the arm7 itself, the usb block, the gpdma function, and the etherne t block (via the bus bridge from ahb2). bus masters with access to ahb2 are the arm7 and the ethernet block. 7.26.5 external interrupt inputs the lpc2388 includes up to 50 edge sensitive interrupt inputs combined with up to four level sensitive external interrupt inputs as selectable pin functions. the external interrupt inputs can optionally be used to wake up the processor from power-down mode. 7.26.6 memory mapping control the memory mapping control alters the mapping of the interrupt vectors that appear at the beginning at address 0x0000 0000. vectors may be mapped to the bottom of the boot rom, the sram, or external memory. this allows code running in different memory spaces to have control of the interrupts. caution if level three code read protection (crp3) is selected, no future factory testing can be performed on the device.
lpc2388_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.02 ? 28 january 2008 36 of 57 nxp semiconductors lpc2388 fast communication chip 7.27 emulation and debugging the lpc2388 support emulation and debugging via a jtag serial port. a trace port allows tracing program execution. debugging and tr ace functions are multiplexed only with gpios on p2[0] to p2[9]. this means that all communication, timer, and interface peripherals residing on other pins are av ailable during the development and debugging phase as they are when the application is run in the embedded system itself. 7.27.1 embeddedice the embeddedice logic provides on-chip debug support. the debugging of the target system requires a host computer running the debugger software and an embeddedice protocol convertor. the embeddedice protocol convertor converts the remote debug protocol commands to the jtag data needed to access the arm7tdmi-s core present on the target system. the arm core has a debug co mmunication channel (dcc) fu nction built-in. the dcc allows a program running on the target to communicate with the host debugger or another separate host without stopping the program flow or even entering the debug state. the dcc is accessed as a coprocessor 14 by t he program running on the arm7tdmi-s core. the dcc allows the jtag port to be used for sending and receiving data without affecting the normal program flow. the dcc data and control registers are mapped in to addresses in the embeddedice logic. the jtag clock (tck) must be slower than 1 ? 6 of the cpu clock (cclk) for the jtag interface to operate. 7.27.2 embedded trace since the lpc2388 have significant amounts of on-chip memories, it is not possible to determine how the processor core is operating simply by observing the external pins. the etm provides real-time trace capability for deeply embedded processo r cores. it outputs information about processor execution to a trace port. a software debugger allows configuration of the etm using a jtag interf ace and displays the tr ace information that has been captured. the etm is connected directly to the arm core and not to the main amba system bus. it compresses the trace information and exports it through a narrow trace port. an external trace port analyzer captures the trace information under software debugger control. the trace port can broadcast the instruction trace in formation. instruction trace (or pc trace) shows the flow of execution of the processor and provides a list of all the instructions that were executed. instruction trace is significan tly compressed by only broadcasting branch addresses as well as a set of status signals th at indicate the pipeline status on a cycle by cycle basis. trace information generation can be controlled by selecting the trigger resource. trigger resources include address comparators, counters and sequencers. since trace information is compressed the software debugger requires a static image of the code being executed. self-modifying code can not be traced because of this restriction.
lpc2388_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.02 ? 28 january 2008 37 of 57 nxp semiconductors lpc2388 fast communication chip 7.27.3 realmonitor realmonitor is a configurable software module, developed by arm inc., which enables real-time debug. it is a lightweight debug monitor that runs in the background while users debug their foreground application. it communi cates with the host using the dcc, which is present in the embeddedice logic. the lpc2 388 contain a specific configuration of realmonitor software programmed into the on-chip rom memory.
lpc2388_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.02 ? 28 january 2008 38 of 57 nxp semiconductors lpc2388 fast communication chip 8. limiting values [1] the following applies to the limiting values: a) this product includes circuitry specif ically designed for the protection of its in ternal devices from the damaging effects of excessive static charge. nonetheless, it is sugges ted that conventional precautions be tak en to avoid applying greater than the rated maximum. b) parameters are valid over operating te mperature range unless otherwise specifi ed. all voltages are with respect to v ss unless otherwise noted. [2] including voltage on outputs in 3-state mode. [3] not to exceed 4.6 v. [4] the peak current is limited to 25 times the corresponding maximum current. [5] dependent on package type. [6] human body model: equivalent to discharging a 100 pf capacitor through a 1.5 k series resistor. table 4. limiting values in accordance with the absolute ma ximum rating system (iec 60134). [1] symbol parameter conditions min max unit v dd(3v3) supply voltage (3.3 v) core and external rail 3.0 3.6 v v dd(dcdc)(3v3) dc-to-dc converter supply voltage (3.3 v) 3.0 3.6 v v dda analog 3.3 v pad supply voltage ? 0.5 +4.6 v v i(vbat) input voltage on pin vbat for the rtc ? 0.5 +4.6 v v i(vref) input voltage on pin vref ? 0.5 +4.6 v v ia analog input voltage on adc related pins ? 0.5 +5.1 v v i input voltage 5 v tolerant i/o pins; only valid when the v dd(3v3) supply voltage is present [2] ? 0.5 +6.0 v other i/o pins [2] [3] ? 0.5 v dd(3v3) + 0.5 v i dd supply current per supply pin [4] - 100 ma i ss ground current per ground pin [4] - 100 ma t stg storage temperature [5] ? 65 +150 c p tot(pack) total power dissipation (per package) based on package heat transfer, not device power consumption - 1.5 w v esd electrostatic discharge voltage human body model; all pins [6] ? 2 000 +2 000 v
lpc2388_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.02 ? 28 january 2008 39 of 57 nxp semiconductors lpc2388 fast communication chip 9. static characteristics table 5. static characteristics t amb = ? 40 c to +85 c for commercial applications, unless otherwise specified. symbol parameter conditions min typ [1] max unit v dd(3v3) supply voltage (3.3 v) core and external rail 3.0 3.3 3.6 v v dd(dcdc)(3v3) dc-to-dc converter supply voltage (3.3 v) 3.0 3.3 3.6 v v dda analog 3.3 v pad supply voltage 3.0 3.3 3.6 v v i(vbat) input voltage on pin vbat [2] 2.0 3.3 3.6 v v i(vref) input voltage on pin vref 2.5 3.3 v dda v standard port pins, reset , rtck i il low-level input current v i = 0 v; no pull-up - - 3 a i ih high-level input current v i = v dd(3v3) ; no pull-down - - 3 a i oz off-state output current v o = 0 v; v o = v dd(3v3) ; no pull-up/down - - 3 a i latch i/o latch-up current ? (0.5v dd(3v3) ) < v i < (1.5v dd(3v3) ); t j < 125 c - - 100 ma v i input voltage pin configured to provide a digital function [3] [4] [5] 0 - 5.5 v v o output voltage output active 0 - v dd(3v3) v v ih high-level input voltage 2.0 - - v v il low-level input voltage - - 0.8 v v hys hysteresis voltage - 0.4 - v v oh high-level output voltage i oh = ? 4 ma [6] v dd(3v3) ? 0.4 - - v v ol low-level output voltage i ol = ? 4 ma [6] - - 0.4 v i oh high-level output current v oh = v dd(3v3) ? 0.4 v [6] ? 4 - - ma i ol low-level output current v ol = 0.4 v [6] 4 - - ma i ohs high-level short-circuit output current v oh = 0 v [7] - - ? 45 ma i ols low-level short-circuit output current v ol = v dda [7] - - 50 ma i pd pull-down current v i = 5 v [8] 10 50 150 a i pu pull-up current v i = 0 v ? 15 ? 50 ? 85 a v dd(3v3) < v i < 5 v [8] 0 0 0 a
lpc2388_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.02 ? 28 january 2008 40 of 57 nxp semiconductors lpc2388 fast communication chip i dd(dcdc)act(3v3) active mode dc-to-dc converter supply current (3.3 v) v dd(dcdc)(3v3) = 3.3 v; t amb = 25 c; code while(1){} executed from flash; no peripherals enabled; pclk = cclk cclk = 10 mhz - 15 - ma cclk = 72 mhz - 63 - ma all peripherals enabled; pclk = cclk / 8 cclk = 10 mhz - 21 - ma cclk = 72 mhz - 92 - ma all peripherals enabled; pclk = cclk cclk = 10 mhz - 27 - ma cclk = 72 mhz - 125 - ma i dd(dcdc)pd(3v3) power-down mode dc-to-dc converter supply current (3.3 v) v dd(dcdc)(3v3) = 3.3 v; t amb = 25 c - 150 - a i batact active mode battery supply current [9] - 20 - a i 2 c-bus pins (p0[27] and p0[28]) v ih high-level input voltage 0.7v dd(3v3) - - v v il low-level input voltage - - 0.3v dd(3v3) v v hys hysteresis voltage - 0.5v dd(3v3) - v v ol low-level output voltage i ols = 3 ma [6] - - 0.4 v i li input leakage current v i = v dd(3v3) [10] - 2 4 a v i = 5 v - 10 22 a oscillator pins v i(xtal1) input voltage on pin xtal1 0 - 1.8 v v o(xtal2) output voltage on pin xtal2 0 - 1.8 v v i(rtcx1) input voltage on pin rtcx1 0 - 1.8 v v o(rtcx2) output voltage on pin rtcx2 0 - 1.8 v usb pins i oz off-state output current 0 v < v i < 3.3 v - - 10 a v bus bus supply voltage - - 5.25 v table 5. static characteristics ?continued t amb = ? 40 c to +85 c for commercial applications, unless otherwise specified. symbol parameter conditions min typ [1] max unit
lpc2388_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.02 ? 28 january 2008 41 of 57 nxp semiconductors lpc2388 fast communication chip [1] typical ratings are not guaranteed. the va lues listed are at room temperature (25 c), nominal supply voltages [2] the rtc typically fails when v i(vbat) drops below 1.6 v. [3] including voltage on outputs in 3-state mode. [4] v dd(3v3) supply voltages must be present. [5] 3-state outputs go into 3-state mode when v dd(3v3) is grounded. [6] accounts for 100 mv voltage drop in all supply lines. [7] only allowed for a short time period. [8] minimum condition for v i = 4.5 v, maximum condition for v i = 5.5 v. [9] on pin vbat. [10] to v ss . [11] includes external resistors of 18 1 % on d+ and d ? . v di differential input sensitivity | (d+) ? (d ? ) | 0.2 - - v v cm differential common mode voltage range includes v di range 0.8 - 2.5 v v th(rs)se single-ended receiver switching threshold voltage 0.8 - 2.0 v v ol low-level output voltage for low-/full-speed r l of 1.5 k to 3.6 v - - 0.18 v v oh high-level output voltage (driven) for low-/full-speed r l of 15 k to gnd 2.8 - 3.5 v c trans transceiver capacitance pin to gnd - - 20 pf z drv driver output impedance for driver which is not high-speed capable with 33 series resistor; steady state drive [11] 36 - 44.1 r pu pull-up resistance softconnect = on 1.1 - 1.9 k table 5. static characteristics ?continued t amb = ? 40 c to +85 c for commercial applications, unless otherwise specified. symbol parameter conditions min typ [1] max unit table 6. adc static characteristics v dda = 2.5 v to 3.6 v; t amb = ? 40 c to +85 c unless otherwise specified; adc frequency 4.5 mhz. symbol parameter conditions min typ max unit v ia analog input voltage 0 - v dda v c ia analog input capacitance - - 1 pf e d differential linearity error [1] [2] [3] - - 1 lsb e l(adj) integral non-linearity [1] [4] - - 2 lsb e o offset error [1] [5] - - 3 lsb e g gain error [1] [6] - - 0.5 % e t absolute error [1] [7] - - 4 lsb r vsi voltage source interface resistance [8] - - 40 k
lpc2388_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.02 ? 28 january 2008 42 of 57 nxp semiconductors lpc2388 fast communication chip [1] conditions: v ssa = 0 v, v dda = 3.3 v. [2] the adc is monotonic, there are no missing codes. [3] the differential linearity error (e d ) is the difference between the actual step width and the ideal step width. see figure 4 . [4] the integral non-linearity (e l(adj) ) is the peak difference between the center of the st eps of the actual and the ideal transfer curve after appropriate adjustment of gain and offset errors. see figure 4 . [5] the offset error (e o ) is the absolute difference between the straight line which fits the actual cu rve and the straight line which fits the ideal curve. see figure 4 . [6] the gain error (e g ) is the relative difference in percent between the straight line fitting the actual transfer curve after removing offset error, and the straight line which fits the ideal transfer curve. see figure 4 . [7] the absolute error (e t ) is the maximum difference between the center of the st eps of the actual transfer curve of the non-calibrated adc and the ideal transfer curve. see figure 4 . [8] see figure 5 .
lpc2388_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.02 ? 28 january 2008 43 of 57 nxp semiconductors lpc2388 fast communication chip (1) example of an actual transfer curve. (2) the ideal transfer curve. (3) differential linearity error (e d ). (4) integral non-linearity (e l(adj) ). (5) center of a step of the actual transfer curve. fig 4. adc characteristics 002aab136 1023 1022 1021 1020 1019 (2) (1) 1024 1018 1019 1020 1021 1022 1023 7 123456 7 6 5 4 3 2 1 0 1018 (5) (4) (3) 1 lsb (ideal) code out v dda ? v ssa 1024 offset error e o gain error e g offset error e o v ia (lsb ideal ) 1 lsb =
lpc2388_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.02 ? 28 january 2008 44 of 57 nxp semiconductors lpc2388 fast communication chip fig 5. suggested adc interface - lpc2388 ad0[y] pin lpc2378 ad0[y] sample ad0[y] 20 k 3 pf 5 pf r vsi v ss v ext 002aac610
lpc2388_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.02 ? 28 january 2008 45 of 57 nxp semiconductors lpc2388 fast communication chip 10. dynamic characteristics [1] characterized but not implemented as production test. guaranteed by design. [1] parameters are valid over operating tem perature range unless otherwise specified. [2] typical ratings are not guaranteed. the va lues listed are at room temperature (25 c), nominal supply voltages. [3] bus capacitance c b in pf, from 10 pf to 400 pf. table 7. dynamic characteristics of usb pins (full-speed) c l = 50 pf; r pu = 1.5 k on d+ to v dd(3v3) ,unless otherwise specified. symbol parameter conditions min typ max unit t r rise time 10 % to 90 % 8.5 - 13.8 ns t f fall time 10 % to 90 % 7.7 - 13.7 ns t frfm differential rise and fall time matching t r / t f - - 109 % v crs output signal crossover voltage 1.3 - 2.0 v t feopt source se0 interval of eop see figure 7 160 - 175 ns t fdeop source jitter for differential transition to se0 transition see figure 7 ? 2 - +5 ns t jr1 receiver jitter to next transition ? 18.5 - +18.5 ns t jr2 receiver jitter for paired transitions 10 % to 90 % ? 9 - +9 ns t eopr1 eop width at receiver must reject as eop; see figure 7 [1] 40 - - ns t eopr2 eop width at receiver must accept as eop; see figure 7 [1] 82 - - ns table 8. dynamic characteristics t amb = ? 40 c to +85 c for commercial applications; v dd(3v3) over specified ranges. [1] symbol parameter conditions min typ [2] max unit external clock f osc oscillator frequency 1 - 24 mhz t cy(clk) clock cycle time 42 - 1000 ns t chcx clock high time t cy(clk) 0.4 - - ns t clcx clock low time t cy(clk) 0.4 - - ns t clch clock rise time - - 5 ns t chcl clock fall time - - 5 ns i 2 c-bus pins (p0[27] and p0[28]) t f(o) output fall time v ih to v il 20 + 0.1 c b [3] - - ns ssp interface t su(spi_miso) spi_miso set-up time t amb = 25 c; measured in spi master mode; see figure 8 - 11 - ns
lpc2388_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.02 ? 28 january 2008 46 of 57 nxp semiconductors lpc2388 fast communication chip 10.1 timing v dd = 1.8 v. fig 6. external clock timing t chcl t clcx t chcx t cy(clk) t clch 002aaa907 0.2v dd + 0.9 v 0.2v dd ? 0.1 v v dd ? 0.5 v 0.45 v fig 7. differential data-to-eop transition skew and eop width 002aab561 t period differential data lines crossover point source eop width: t feopt receiver eop width: t eopr1 , t eopr2 crossover point extended differential data to se0/eop skew n t period + t fdeop fig 8. miso line set-up time in ssp master mode t su(spi_miso) sck shifting edges mosi miso 002aad326 sampling edges
lpc2388_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.02 ? 28 january 2008 47 of 57 nxp semiconductors lpc2388 fast communication chip 11. application information 11.1 suggested usb interface solutions fig 9. lpc2388 usb interface on a self-powered device lpc23xx usb-b connector usb_d+ usb_connect soft-connect switch usb_d ? v bus v ss v dd(3v3) r1 1.5 k r s = 33 002aac578 r s = 33 usb_up_led fig 10. lpc2388 usb interface on a bus-powered device lpc23xx v dd(3v3) r1 1.5 k r2 usb_up_led 002aac579 usb-b connector usb_d+ usb_d ? v bus v ss r s = 33 r s = 33
lpc2388_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.02 ? 28 january 2008 48 of 57 nxp semiconductors lpc2388 fast communication chip fig 11. lpc2388 usb otg port configuration: usb port 1 otg dual-role device, usb port 2 host usb_up_led1 usb_d+1 usb_d ? 1 usb_pwrd2 usb_sda1 usb_scl1 rstout 15 k 15 k lpc2388 usb-a connector mini-ab connector 33 33 33 33 v dd v dd v dd usb_up_led2 v dd usb_ovrcr2 lm3526-l ena in 5 v outa flaga v dd d+ d ? v bus usb_ppwr2 usb_d+2 usb_d ? 2 002aad336 r7 r4 r5 r6 r1 r2 r3 r4 r8 usb_int1 reset_n adr/psw speed suspend oe_n/int_n scl sda int_n vbus id dp dm isp1301 v ss v ss
lpc2388_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.02 ? 28 january 2008 49 of 57 nxp semiconductors lpc2388 fast communication chip fig 12. lpc2388 usb otg port configuration: vp_vm mode usb_tx_dp1 usb_tx_dm1 usb_rcv1 usb_rx_dp1 usb_rx_dm1 usb_scl1 usb_sda1 speed adr/psw sda scl reset_n int_n vp vm suspend oe_n/int_n se0_vm dat_vp rcv vbus id dp dm lpc2388 isp1301 usb mini-ab connector 33 33 002aad337 usb_tx_e1 rstout v dd v dd usb_int1 usb_up_led1 v dd v ss
lpc2388_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.02 ? 28 january 2008 50 of 57 nxp semiconductors lpc2388 fast communication chip fig 13. lpc2388 usb otg port configuration: usb port 2 device, usb port 1 host usb_up_led1 usb_d+1 usb_d ? 1 usb_pwrd1 15 k 15 k lpc2388 usb-a connector usb-b connector 33 33 33 33 002aad335 v dd usb_up_led2 usb_connect2 v dd v dd usb_ovrcr1 usb_ppwr1 lm3526-l ena in 5 v flaga outa v dd d+ d ? d+ d ? v bus usb_d+2 usb_d ? 2 v bus v bus v ss v ss
lpc2388_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.02 ? 28 january 2008 51 of 57 nxp semiconductors lpc2388 fast communication chip fig 14. lpc2388 usb otg port configuration: usb port 1 host, usb port 2 host usb_up_led1 usb_d+1 usb_d ? 1 usb_pwrd1 usb_pwrd2 15 k 15 k 15 k 15 k lpc2388 usb-a connector usb-a connector 33 33 33 33 002aad338 v dd usb_up_led2 v dd usb_ovrcr1 usb_ovrcr2 usb_ppwr1 lm3526-l ena enb in 5 v flaga outa outb flagb v dd v dd d+ d ? d+ d ? v bus v bus usb_ppwr2 usb_d+2 usb_d ? 2 v ss v ss
lpc2388_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.02 ? 28 january 2008 52 of 57 nxp semiconductors lpc2388 fast communication chip 12. package outline fig 15. package outline sot486-1 (lqfp144) unit a 1 a 2 a 3 b p ce (1) eh e ll p z y w v references outline version european projection issue date iec jedec jeita mm 0.15 0.05 1.45 1.35 0.25 0.27 0.17 0.20 0.09 20.1 19.9 0.5 22.15 21.85 1.4 1.1 7 0 o o 0.08 0.2 0.08 1 dimensions (mm are the original dimensions) note 1. plastic or metal protrusions of 0.25 mm maximum per side are not included. 0.75 0.45 sot486-1 136e23 ms-026 00-03-14 03-02-20 d (1) (1) (1) 20.1 19.9 h d 22.15 21.85 e z 1.4 1.1 d 0 5 10 mm scale b p e e a 1 a l p detail x l (a ) 3 b c b p e h a 2 d h v m b d z d a z e e v m a x y w m w m a max. 1.6 lqfp144: plastic low profile quad flat package; 144 leads; body 20 x 20 x 1.4 mm sot486-1 108 109 pin 1 index 73 72 37 1 144 36
lpc2388_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.02 ? 28 january 2008 53 of 57 nxp semiconductors lpc2388 fast communication chip 13. abbreviations table 9. acronym list acronym description adc analog-to-digital converter ahb advanced high-performance bus amba advanced microcontroller bus architecture apb advanced peripheral bus bls byte lane select bod brownout detection can controller area network cts clear to send dac digital-to-analog converter dcc debug communication channel dma direct memory access dsp digital signal processing eop end of packet etm embedded trace macrocell gpio general purpose input/output irda infrared data association jtag joint test action group mii media independent interface phy physical layer pll phase-locked loop pwm pulse width modulator rmii reduced media independent interface rts request to send se0 single ended zero spi serial peripheral interface ssi synchronous serial interface ssp synchronous serial port ttl transistor-transistor logic uart universal asynchronous receiver/transmitter usb universal serial bus
lpc2388_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.02 ? 28 january 2008 54 of 57 nxp semiconductors lpc2388 fast communication chip 14. revision history table 10. revision history document id release date data sheet status change notice supersedes lpc2388_0.02 preliminary data sheet lpc2388_0.01 modifications: rstout pin description updated: this is a 3.3 v pin. lpc2388_0.01 preliminary data sheet
lpc2388_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.02 ? 28 january 2008 55 of 57 nxp semiconductors lpc2388 fast communication chip 15. legal information 15.1 data sheet status [1] please consult the most recently issued document before initiating or completing a design. [2] the term ?short data sheet? is explained in section ?definitions?. [3] the product status of device(s) described in this document may have changed since this document was published and may differ in case of multiple device s. the latest product status information is available on the internet at url http://www.nxp.com . 15.2 definitions draft ? the document is a draft versi on only. the content is still under internal review and subject to formal approval, which may result in modifications or additions. nxp semiconductors does not give any representations or warranties as to the accuracy or completeness of information included herein and shall hav e no liability for the consequences of use of such information. short data sheet ? a short data sheet is an extract from a full data sheet with the same product type number(s) and title. a short data sheet is intended for quick reference only and should not be relied upon to contain detailed and full information. for detailed and full information see the relevant full data sheet, which is available on request vi a the local nxp semiconductors sales office. in case of any inconsistency or conflict with the short data sheet, the full data sheet shall prevail. 15.3 disclaimers general ? information in this document is believed to be accurate and reliable. however, nxp semiconductors d oes not give any representations or warranties, expressed or implied, as to the accuracy or completeness of such information and shall have no liability for the consequences of use of such information. right to make changes ? nxp semiconductors reserves the right to make changes to information published in this document, including without limitation specifications and product descriptions, at any time and without notice. this document supersedes and replaces all information supplied prior to the publication hereof. suitability for use ? nxp semiconductors products are not designed, authorized or warranted to be suitable for use in medical, military, aircraft, space or life support equipment, nor in applications where failure or malfunction of a nxp semiconductors product can reasonably be expected to result in personal injury, death or severe property or environmental damage. nxp semiconductors accepts no liability for inclusion and/or use of nxp semiconductors products in such equi pment or applications and therefore such inclusion and/or use is at the customer?s own risk. applications ? applications that are described herein for any of these products are for illustrative purpos es only. nxp semiconductors makes no representation or warranty that such applications will be suitable for the specified use without further testing or modification. limiting values ? stress above one or more limiting values (as defined in the absolute maximum ratings system of iec 60134) may cause permanent damage to the device. limiting values are stress ratings only and operation of the device at these or any other conditions above those given in the characteristics sections of this document is not implied. exposure to limiting values for extended periods may affect device reliability. terms and conditions of sale ? nxp semiconductors products are sold subject to the general terms and condit ions of commercial sale, as published at http://www.nxp.com/profile/terms , including those pertaining to warranty, intellectual property rights infringement and limitation of liability, unless explicitly otherwise agreed to in writ ing by nxp semiconductors. in case of any inconsistency or conflict between information in this document and such terms and conditions, the latter will prevail. no offer to sell or license ? nothing in this document may be interpreted or construed as an offer to sell products t hat is open for acceptance or the grant, conveyance or implication of any lic ense under any copyrights, patents or other industrial or intellectual property rights. 15.4 trademarks notice: all referenced brands, produc t names, service names and trademarks are the property of their respective owners. i 2 c-bus ? logo is a trademark of nxp b.v. softconnect ? is a trademark of nxp b.v. goodlink ? is a trademark of nxp b.v. 16. contact information for additional information, please visit: http://www.nxp.com for sales office addresses, send an email to: salesaddresses@nxp.com document status [1] [2] product status [3] definition objective [short] data sheet development this document contains data from the objec tive specification for product development. preliminary [short] data sheet qualification this document contains data from the preliminary specification. product [short] data sheet production this document contains the product specification.
lpc2388_0 ? nxp b.v. 2008. all rights reserved. preliminary data sheet rev. 00.02 ? 28 january 2008 56 of 57 continued >> nxp semiconductors lpc2388 fast communication chip 17. contents 1 general description . . . . . . . . . . . . . . . . . . . . . . 1 2 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 3 applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 4 ordering information . . . . . . . . . . . . . . . . . . . . . 3 4.1 ordering options . . . . . . . . . . . . . . . . . . . . . . . . 3 5 block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . 4 6 pinning information . . . . . . . . . . . . . . . . . . . . . . 5 6.1 pinning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 6.2 pin description . . . . . . . . . . . . . . . . . . . . . . . . . 5 7 functional description . . . . . . . . . . . . . . . . . . 15 7.1 architectural overview . . . . . . . . . . . . . . . . . . 15 7.2 on-chip flash programming memory . . . . . . . 16 7.3 on-chip sram . . . . . . . . . . . . . . . . . . . . . . . . 17 7.4 memory map. . . . . . . . . . . . . . . . . . . . . . . . . . 17 7.5 interrupt controller . . . . . . . . . . . . . . . . . . . . . 18 7.5.1 interrupt sources. . . . . . . . . . . . . . . . . . . . . . . 19 7.6 pin connect block . . . . . . . . . . . . . . . . . . . . . . 19 7.7 external memory controller. . . . . . . . . . . . . . . 19 7.7.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 7.8 general purpose dma controller . . . . . . . . . . 20 7.8.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 7.9 fast general purpose parallel i/o . . . . . . . . . . 21 7.9.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 7.10 ethernet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 7.10.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 7.11 usb interface . . . . . . . . . . . . . . . . . . . . . . . . . 23 7.11.1 usb device controller . . . . . . . . . . . . . . . . . . . 23 7.11.1.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 7.11.2 usb host controller . . . . . . . . . . . . . . . . . . . . 23 7.11.2.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 7.11.3 usb otg controller . . . . . . . . . . . . . . . . . . . . 24 7.11.3.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 7.12 can controller and acceptance filters . . . . . . 24 7.12.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 7.13 10-bit adc . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 7.13.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 7.14 10-bit dac . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 7.14.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 7.15 uarts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 7.15.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 7.16 spi serial i/o controller. . . . . . . . . . . . . . . . . . 26 7.16.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 7.17 ssp serial i/o controller . . . . . . . . . . . . . . . . . 26 7.17.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 7.18 sd/mmc card interface . . . . . . . . . . . . . . . . . 26 7.18.1 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 7.19 i 2 c-bus serial i/o controllers. . . . . . . . . . . . . . 27 7.19.1 features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 7.20 i 2 s-bus serial i/o controllers . . . . . . . . . . . . . 27 7.20.1 features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 7.21 general purpose 32-bit timers/external event counters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 7.21.1 features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 7.22 pulse width modulator . . . . . . . . . . . . . . . . . . 28 7.22.1 features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 7.23 watchdog timer . . . . . . . . . . . . . . . . . . . . . . . 30 7.23.1 features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 7.24 rtc and battery ram . . . . . . . . . . . . . . . . . . 30 7.24.1 features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 7.25 clocking and power control . . . . . . . . . . . . . . 31 7.25.1 crystal oscillators . . . . . . . . . . . . . . . . . . . . . . 31 7.25.1.1 internal rc oscillator . . . . . . . . . . . . . . . . . . . 31 7.25.1.2 main oscillator . . . . . . . . . . . . . . . . . . . . . . . . 31 7.25.1.3 rtc oscillator . . . . . . . . . . . . . . . . . . . . . . . . 31 7.25.2 pll. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 7.25.3 wake-up timer . . . . . . . . . . . . . . . . . . . . . . . . 32 7.25.4 power control . . . . . . . . . . . . . . . . . . . . . . . . . 32 7.25.4.1 idle mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 7.25.4.2 sleep mode . . . . . . . . . . . . . . . . . . . . . . . . . . 33 7.25.4.3 power-down mode . . . . . . . . . . . . . . . . . . . . . 33 7.25.4.4 power domains . . . . . . . . . . . . . . . . . . . . . . . 33 7.26 system control . . . . . . . . . . . . . . . . . . . . . . . . 34 7.26.1 reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 7.26.2 brownout detection . . . . . . . . . . . . . . . . . . . . 34 7.26.3 code security (code read protection - crp) 35 7.26.4 ahb . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 7.26.5 external interrupt inputs . . . . . . . . . . . . . . . . . 35 7.26.6 memory mapping control . . . . . . . . . . . . . . . . 35 7.27 emulation and debugging . . . . . . . . . . . . . . . 36 7.27.1 embeddedice . . . . . . . . . . . . . . . . . . . . . . . . 36 7.27.2 embedded trace. . . . . . . . . . . . . . . . . . . . . . . 36 7.27.3 realmonitor . . . . . . . . . . . . . . . . . . . . . . . . . . 37 8 limiting values . . . . . . . . . . . . . . . . . . . . . . . . 38 9 static characteristics . . . . . . . . . . . . . . . . . . . 39 10 dynamic characteristics. . . . . . . . . . . . . . . . . 45 10.1 timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 11 application information . . . . . . . . . . . . . . . . . 47 11.1 suggested usb interface solutions . . . . . . . . 47 12 package outline. . . . . . . . . . . . . . . . . . . . . . . . 52 13 abbreviations . . . . . . . . . . . . . . . . . . . . . . . . . 53 14 revision history . . . . . . . . . . . . . . . . . . . . . . . 54 15 legal information . . . . . . . . . . . . . . . . . . . . . . 55 15.1 data sheet status . . . . . . . . . . . . . . . . . . . . . . 55
nxp semiconductors lpc2388 fast communication chip ? nxp b.v. 2008. all rights reserved. for more information, please visit: http://www.nxp.com for sales office addresses, please se nd an email to: salesaddresses@nxp.com date of release: 28 january 2008 document identifier: lpc2388_0 please be aware that important notices concerning this document and the product(s) described herein, have been included in section ?legal information?. 15.2 definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 15.3 disclaimers . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 15.4 trademarks. . . . . . . . . . . . . . . . . . . . . . . . . . . 55 16 contact information. . . . . . . . . . . . . . . . . . . . . 55 17 contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56


▲Up To Search▲   

 
Price & Availability of LPC2388FBD144

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X